[PATCH] Fix build for mips targets

Baruch Siach baruch at tkos.co.il
Tue Jan 8 20:15:23 UTC 2019

Hi Dmitry,

Dmitry V. Levin writes:
> 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.

You can see the full build log at


Similar mips build failures are listed at


Other failures on that list are fixed in separate patches.


     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

More information about the Strace-devel mailing list