kernel/seccomp.c:2126:1: warning: alias and aliasee have different types 'long (unsigned int, unsigned int, void *)' and 'long (typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned int)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((unsigned int)0), typeof (0ULL))), 0LL, 0L)), typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned int)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((unsigned int)0), typeof (0ULL))), 0LL, 0L)), typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((void *)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((void *)0), typeof (0ULL))), 0LL, 0L)))' (aka 'long (long, long, long)') [-Wattribute-alias]
2126 | SYSCALL_DEFINE3(seccomp, unsigned int, op, unsigned int, flags,
| ^
include/linux/syscalls.h:227:36: note: expanded from macro 'SYSCALL_DEFINE3'
227 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
| ^
include/linux/syscalls.h:236:2: note: expanded from macro 'SYSCALL_DEFINEx'
236 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^
include/linux/syscalls.h:251:18: note: expanded from macro '__SYSCALL_DEFINEx'
251 | __attribute__((alias(__stringify(__se_sys##name)))); \
| ^
kernel/seccomp.c:2126:1: note: aliasee is declared here
include/linux/syscalls.h:227:36: note: expanded from macro 'SYSCALL_DEFINE3'
227 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
| ^
include/linux/syscalls.h:236:2: note: expanded from macro 'SYSCALL_DEFINEx'
236 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^
include/linux/syscalls.h:255:18: note: expanded from macro '__SYSCALL_DEFINEx'
255 | asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
| ^
<scratch space>:59:1: note: expanded from here
59 | __se_sys_seccomp
| ^
1 warning generated.
llvm/llvm-project@40da692
We will need to match commit bee20031772a ("disable -Wattribute-alias warning for SYSCALL_DEFINEx()"). I will send a patch for this.