From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CA4C314B8F; Wed, 3 Jun 2026 05:53:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780466036; cv=none; b=Y7fKK6ayIXmN6WQ9yan4PHlnFbFN8yCBVM7vuCyAKQhGzuF4eMHkBUQKp26IVAu9Mqe/iAMovxoN8yTUl965qkzPdNYrfv2yr2AtOa5KeoDa8SuWItGz9i549TNbJA1+uALToAxRxlWUHRK79/O2h9tKOriv9Jd2d0r28chVizg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780466036; c=relaxed/simple; bh=qQW63nNo4f+XzF8JZtIEpx3asuhqWNbLY1U+VmHKOqI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z/yrUT18mR2fHuHkPItDzm5aKQyExE6hQdUIqwTYaKYPCNk41jkN2umHzAvupV3zaza819IPc4ZqYaWOMMi2+olQM0vAPr4uxObZjeiVUUeYasVHlvq/VojA84p/vq83KfCsNA7iFTATNi5MJQ1QuPJlPuinXlQ6PYa5ScBf7yA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V5L430g/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V5L430g/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E25C11F00893; Wed, 3 Jun 2026 05:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780466034; bh=yrUERsE4E6cHjoWVt2xzxPe3w/lcberc5ceNmu1nan0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=V5L430g/kHbBb5bUGWR+PfT613/157tl2xwmV9rged43OJbXaFh5/SFlqoGSsjQSs PNCwyW3BLmTKysOOWPjchVw4B5op168mJllXWz4UccK80oilPmkYxiOgv/n8IwtAFh zf7u5eqUGEJH7HO2RrlSCGukIPcdyxXZdvfKIKJU84TbzAaLoD4Ia4f7msBjx4zpN7 bHOKOaJHYCbU10M3bNyx1MZKR6A71La94ZQQvIaPyXYRkD144ybwT38XKxKq7Jha2+ IiwI/V1Yf8mX3CuQUT1YBZPms12IqIe74pdmfROU9oVknXpZ3deqPTR21/wPINbeo4 eKDTF7IuHkpaQ== Date: Wed, 3 Jun 2026 08:53:48 +0300 From: Mike Rapoport To: kernel test robot , Nathan Chancellor Cc: oe-kbuild-all@lists.linux.dev, David Hildenbrand , Andrew Morton , Linux Memory Management List , mm-commits@vger.kernel.org, "Christian Brauner (Amutable)" Subject: Re: [akpm-mm:mm-unstable 274/423] mm/userfaultfd.c:4475:1: warning: alias and aliasee have different types 'long (ulong, ulong, ulong, ulong, ulong, ulong, ulong)' (aka 'long (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)') and 'l... Message-ID: References: <202606031038.1aPfmoCm-lkp@intel.com> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202606031038.1aPfmoCm-lkp@intel.com> (adding Nathan) On Wed, Jun 03, 2026 at 10:29:32AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable > head: 6bb9014e347a15dfa837cbc52451035466d86ddf > commit: 53313230f720eaaf9f1f6d20faafd7e01a9e09b7 [274/423] userfaultfd: merge fs/userfaultfd.c into mm/userfaultfd.c > config: riscv-randconfig-r122-20260529 (https://download.01.org/0day-ci/archive/20260603/202606031038.1aPfmoCm-lkp@intel.com/config) > compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 9409c07de6378507397ecdb6f05f628f58110112) > sparse: v0.6.5-rc1 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260603/202606031038.1aPfmoCm-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 > | Closes: https://lore.kernel.org/oe-kbuild-all/202606031038.1aPfmoCm-lkp@intel.com/ > > All warnings (new ones prefixed by >>): Looks the same as https://lore.kernel.org/all/20260528164552.GB1342076@ax162 Nathan said it's a compiler issue. > >> mm/userfaultfd.c:4475:1: warning: alias and aliasee have different types 'long (ulong, ulong, ulong, ulong, ulong, ulong, ulong)' (aka 'long (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)') and 'long (typeof (__builtin_choose_expr((__builtin_types_compatible_p(typeof ((int)0), typeof (0LL)) || __builtin_types_compatible_p(typeof ((int)0), typeof (0ULL))), 0LL, 0L)))' (aka 'long (long)') [-Wattribute-alias] > 4475 | SYSCALL_DEFINE1(userfaultfd, int, flags) > | ^ > 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__) > | ^ > arch/riscv/include/asm/syscall_wrapper.h:82:2: note: expanded from macro '__SYSCALL_DEFINEx' > 82 | __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ > | ^ > arch/riscv/include/asm/syscall_wrapper.h:37:19: note: expanded from macro '__SYSCALL_SE_DEFINEx' > 37 | __attribute__((alias(__stringify(___se_##prefix##name)))); \ > | ^ > mm/userfaultfd.c:4475: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__) > | ^ > arch/riscv/include/asm/syscall_wrapper.h:82:2: note: expanded from macro '__SYSCALL_DEFINEx' > 82 | __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ > | ^ > arch/riscv/include/asm/syscall_wrapper.h:41:14: note: expanded from macro '__SYSCALL_SE_DEFINEx' > 41 | static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) > | ^ > :148:1: note: expanded from here > 148 | ___se_sys_userfaultfd > | ^ > 1 warning generated. > > > vim +4475 mm/userfaultfd.c > > 4474 > > 4475 SYSCALL_DEFINE1(userfaultfd, int, flags) > 4476 { > 4477 if (!userfaultfd_syscall_allowed(flags)) > 4478 return -EPERM; > 4479 > 4480 return new_userfaultfd(flags); > 4481 } > 4482 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki -- Sincerely yours, Mike.