Re: [PATCH] Disable -Wattribute-alias for clang-23 and newer

From: patchwork-bot+linux-riscv

Date: Fri Jun 26 2026 - 04:27:43 EST


Hello:

This patch was applied to riscv/linux.git (fixes)
by Nathan Chancellor <nathan@xxxxxxxxxx>:

On Fri, 15 May 2026 19:35:18 +0900 you wrote:
> Clang recently added support for -Wattribute-alias [1], which results in
> the same warnings that necessitated commit bee20031772a ("disable
> -Wattribute-alias warning for SYSCALL_DEFINEx()") for GCC.
>
> kernel/time/itimer.c:325:1: error: alias and aliasee have different types 'long (unsigned int)' 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)))' (aka 'long (long)') [-Werror,-Wattribute-alias]
> 325 | SYSCALL_DEFINE1(alarm, unsigned int, seconds)
> | ^
> include/linux/syscalls.h:225:36: note: expanded from macro 'SYSCALL_DEFINE1'
> 225 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##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/time/itimer.c:325:1: note: aliasee is declared here
> include/linux/syscalls.h:225:36: note: expanded from macro 'SYSCALL_DEFINE1'
> 225 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##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>:16:1: note: expanded from here
> 16 | __se_sys_alarm
> | ^
>
> [...]

Here is the summary with links:
- Disable -Wattribute-alias for clang-23 and newer
https://git.kernel.org/riscv/c/175db11786bd

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html