From: Nathan Chancellor <nathan@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: Askar Safin <safinaskar@gmail.com>,
llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Christian Brauner <christianvanbrauner@gmail.com>,
Christian Brauner <brauner@kernel.org>
Subject: Re: [brauner-vfs:vfs-7.2.vmsplice 2/4] fs/read_write.c:1219:1: warning: alias and aliasee have different types 'long (unsigned long, const struct iovec *, unsigned long, unsigned int)' and 'long (typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0LL...
Date: Tue, 2 Jun 2026 18:58:08 -0700 [thread overview]
Message-ID: <20260603015808.GA3014010@ax162> (raw)
In-Reply-To: <202606021605.feT4WbtH-lkp@intel.com>
On Tue, Jun 02, 2026 at 05:01:04PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs-7.2.vmsplice
> head: 2d4099641dbaed4b98711fc7d8ec94c5aec0a0f0
> commit: e2c0b2368081bef7d1f6758cc9e7edde8521237c [2/4] vmsplice: make vmsplice a trivial wrapper for preadv2/pwritev2
> config: um-allnoconfig (https://download.01.org/0day-ci/archive/20260602/202606021605.feT4WbtH-lkp@intel.com/config)
> compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e5ab4f8a1f766febdc65ce89c00dec85393cfd68)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260602/202606021605.feT4WbtH-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202606021605.feT4WbtH-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> fs/read_write.c:1176:1: warning: alias and aliasee have different types 'long (unsigned long, const struct iovec *, unsigned long, unsigned long, unsigned long)' and 'long (typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0ULL))), 0LL, 0L)), typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((const struct iovec *)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((const struct iovec *)0), typeof (0ULL))), 0LL, 0L)), typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0ULL))), 0LL, 0L)), typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0ULL))), 0LL, 0L)), typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0ULL))), 0LL, 0L)))' (aka 'long (long, long, long, long, long)') [-Wattribute-alias]
> 1176 | SYSCALL_DEFINE5(preadv, unsigned long, fd, const struct iovec __user *, vec,
> | ^
> include/linux/syscalls.h:229:36: note: expanded from macro 'SYSCALL_DEFINE5'
> 229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##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)))); \
> | ^
> fs/read_write.c:1176:1: note: aliasee is declared here
> include/linux/syscalls.h:229:36: note: expanded from macro 'SYSCALL_DEFINE5'
> 229 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##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>:43:1: note: expanded from here
> 43 | __se_sys_preadv
> | ^
This should be addressed in Linus's tree with
175db11786bd ("Disable -Wattribute-alias for clang-23 and newer")
--
Cheers,
Nathan
prev parent reply other threads:[~2026-06-03 1:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 9:01 [brauner-vfs:vfs-7.2.vmsplice 2/4] fs/read_write.c:1219:1: warning: alias and aliasee have different types 'long (unsigned long, const struct iovec *, unsigned long, unsigned int)' and 'long (typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((unsigned long)0), typeof (0LL kernel test robot
2026-06-03 1:58 ` Nathan Chancellor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260603015808.GA3014010@ax162 \
--to=nathan@kernel.org \
--cc=brauner@kernel.org \
--cc=christianvanbrauner@gmail.com \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=safinaskar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox