[PATCH] Fix build for mips targets

Dmitry V. Levin ldv at altlinux.org
Tue Jan 8 18:43:23 UTC 2019


On Tue, Jan 08, 2019 at 07:59:36PM +0200, Baruch Siach wrote:
> Commit 917c2ccf3a67 ("Refactor stack pointers") removed
> linux/mips/arch_regs.h that defines mips_REG_* macros and struct
> mips_regs. These symbols are referenced in mips code. Restore
> arch_regs.h to fix the build failure:

These macros were moved from linux/mips/arch_regs.h to
linux/mips/arch_regs.c because they are no longer used outside
syscall.c or files included by syscall.c.

> syscall.c: In function 'decode_syscall_subcall':
> syscall.c:370:7: error: 'mips_REG_SP' undeclared (first use in this function)
>        mips_REG_SP + MAX_ARGS * sizeof(tcp->u_arg[0]),
> 	   ^~~~~~~~~~~

Interesting, I see no build failures on mips,
you must be doing something unusual.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190108/0340455f/attachment.bin>


More information about the Strace-devel mailing list