Skip to content

Commit 1eb8a49

Browse files
masahir0yKAGA-KOKO
authored andcommitted
x86/syscalls: Clear 'offset' and 'prefix' in case they are set in env
If the environment variable 'prefix' is set on the build host, it is wrongly used as syscall macro prefixes. $ export prefix=/usr $ make -s defconfig all In file included from ./arch/x86/include/asm/unistd.h:20, from <stdin>:2: ./arch/x86/include/generated/uapi/asm/unistd_64.h:4:9: warning: missing whitespace after the macro name 4 | #define __NR_/usrread 0 | ^~~~~ arch/x86/entry/syscalls/Makefile should clear 'offset' and 'prefix'. Fixes: 3cba325 ("x86/syscalls: Switch to generic syscallhdr.sh") Reported-by: Naresh Kamboju <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2978996 commit 1eb8a49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/entry/syscalls/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ syscall64 := $(src)/syscall_64.tbl
1111

1212
syshdr := $(srctree)/scripts/syscallhdr.sh
1313
systbl := $(srctree)/scripts/syscalltbl.sh
14+
offset :=
15+
prefix :=
1416

1517
quiet_cmd_syshdr = SYSHDR $@
1618
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --abis $(abis) --emit-nr \

0 commit comments

Comments
 (0)