Skip to content

Commit 8dd4c0f

Browse files
committed
tools arch uapi: Update asm-generic/unistd.h and arm64 unistd.h copies
To get the changes in: 82b355d ("y2038: Remove newstat family from default syscall set") Which will make the syscall table used by 'perf trace' for arm64 to be updated from the changes in that patch. This silences these perf build warnings: Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/unistd.h' differs from latest version at 'arch/arm64/include/uapi/asm/unistd.h' diff -u tools/arch/arm64/include/uapi/asm/unistd.h arch/arm64/include/uapi/asm/unistd.h Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h' diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h Cc: Kim Phillips <kim.phillips@arm.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-3euy7c4yy5mvnp5bm16t9vqg@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 733ac4f commit 8dd4c0f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tools/arch/arm64/include/uapi/asm/unistd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
*/
1717

1818
#define __ARCH_WANT_RENAMEAT
19+
#define __ARCH_WANT_NEW_STAT
1920

2021
#include <asm-generic/unistd.h>

tools/include/uapi/asm-generic/unistd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,12 @@ __SYSCALL(__NR_tee, sys_tee)
242242
/* fs/stat.c */
243243
#define __NR_readlinkat 78
244244
__SYSCALL(__NR_readlinkat, sys_readlinkat)
245+
#if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
245246
#define __NR3264_fstatat 79
246247
__SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat)
247248
#define __NR3264_fstat 80
248249
__SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat)
250+
#endif
249251

250252
/* fs/sync.c */
251253
#define __NR_sync 81

0 commit comments

Comments
 (0)