From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 ECF433ADBA7 for ; Tue, 18 Aug 2026 08:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787041639; cv=none; b=WfM6o9x/NtEPBl3VRIyofMGiupZuhtRVC8ByBih3aKSohaB2RKLdlPsgym2qOUjeVWLvsrqKVdHQTUcCNF/yt+u28zqolMu12IqMUwJWYaG3wZ7cEt/hT/zcJcV+Hha4JVOxbkNOSzyh75gJOb5x7iyFK4h/HYvBiZdeSLlP9cg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787041639; c=relaxed/simple; bh=A7bHR/MU2a/w9t33VhwbAkGq7WGqDUPnqK8mB45tsFk=; h=Date:From:To:Cc:Subject:Message-ID; b=EYHWdds1vR9iKthUaLTXRTrj++emR/Dva4FB1FsdFv97NHSjW3RubTO/lAoyxNf3WSE1KcnXCDUdfzm4ixm5TLjimmM3kzM4YVY5bvalD5Q0J7W+ihYerpt2YYPyTFmEhYopBJDRejDzup7OnA+g0lYzMSInTVAYsbyp/pllKx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AUaOmv9l; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AUaOmv9l" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787041638; x=1818577638; h=date:from:to:cc:subject:message-id; bh=A7bHR/MU2a/w9t33VhwbAkGq7WGqDUPnqK8mB45tsFk=; b=AUaOmv9l8pfrjqPfr/tK093HZgrOsggb50zxnAS2ArAP9S9LeNjFiODn myDakkWUfwM1xk0i5TjOYMN31NKRdLT4HT2MGyi209DIH8yBU2jYMLz0Y a/E8psIWRM1uEI+SXxqTsCwQ+sq9nm8P7/CVoK0DUOJMnnNLwJPlG0zCq p0D4T/ZJI09vrdaTRyBL122oiWdo8lSVPwfcyK57071zPEph6LO7sapXa bafEgWa0mf4iHeoEJcEXQziwCv6iB/F7LbCSkKjDfGuD3SwEEBkw6oKtT doWRp59Ok02Dn3GsOIxDqJkFIOzs1kwJT8QCo3Rv51W3SUlFJSe3G06u+ g==; X-CSE-ConnectionGUID: FwNCIuaxRXuSKIL2U/jNSg== X-CSE-MsgGUID: 8F9r7uyjSB2B/pu5Z2+8Og== X-IronPort-AV: E=McAfee;i="6800,10657,11878"; a="90039565" X-IronPort-AV: E=Sophos;i="6.25,230,1779174000"; d="scan'208";a="90039565" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2026 01:27:18 -0700 X-CSE-ConnectionGUID: rngQQo1GQeOisUjcundRGw== X-CSE-MsgGUID: DgnysbozQGullXJVZsco9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,230,1779174000"; d="scan'208";a="263836334" Received: from lkp-server01.sh.intel.com (HELO 6eda058d650d) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 18 Aug 2026 01:27:16 -0700 Received: from kbuild by 6eda058d650d with local (Exim 4.98.2) (envelope-from ) id 1wwFA8-00000000eCM-3pns; Tue, 18 Aug 2026 08:27:12 +0000 Date: Tue, 18 Aug 2026 16:26:21 +0800 From: kernel test robot To: "Mike Rapoport (Microsoft)" Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , "Christian Brauner (Amutable)" Subject: arch/riscv/include/asm/syscall_wrapper.h:35:14: warning: '__se_sys_userfaultfd' alias between functions of incompatible types 'long int(ulong, ulong, ulong, ulong, ulong, ulong, ulong)' {aka 'long int(long unsigned int, long unsigned int, long uns... Message-ID: <202608181601.lxsFodJY-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8d3ae59288f1e7d58d76558a6ee96d533bc5019f commit: 7bc5e747bba29d5b77b2278e8c696eea0c796706 userfaultfd: merge fs/userfaultfd.c into mm/userfaultfd.c date: 2 months ago config: riscv-randconfig-r062-20260818 (https://download.01.org/0day-ci/archive/20260818/202608181601.lxsFodJY-lkp@intel.com/config) compiler: riscv32-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260818/202608181601.lxsFodJY-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 | Fixes: 7bc5e747bba2 ("userfaultfd: merge fs/userfaultfd.c into mm/userfaultfd.c") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202608181601.lxsFodJY-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/compat.h:34, from arch/riscv/include/asm/elf.h:12, from include/linux/elf.h:6, from include/linux/module.h:20, from include/linux/device/driver.h:21, from include/linux/device.h:32, from include/linux/blk_types.h:11, from include/linux/writeback.h:13, from include/linux/memcontrol.h:23, from include/linux/rmap.h:12, from mm/userfaultfd.c:16: >> arch/riscv/include/asm/syscall_wrapper.h:35:14: warning: '__se_sys_userfaultfd' alias between functions of incompatible types 'long int(ulong, ulong, ulong, ulong, ulong, ulong, ulong)' {aka 'long int(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int)'} and 'long int(long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:82:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:236:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:225:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ mm/userfaultfd.c:4475:1: note: in expansion of macro 'SYSCALL_DEFINE1' SYSCALL_DEFINE1(userfaultfd, int, flags) ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:41:14: note: aliased declaration here static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) ^~~~~~ arch/riscv/include/asm/syscall_wrapper.h:82:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:236:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:225:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ mm/userfaultfd.c:4475:1: note: in expansion of macro 'SYSCALL_DEFINE1' SYSCALL_DEFINE1(userfaultfd, int, flags) ^~~~~~~~~~~~~~~ vim +35 arch/riscv/include/asm/syscall_wrapper.h a9ad73295cc1e3 Sami Tolvanen 2024-03-11 16 a9ad73295cc1e3 Sami Tolvanen 2024-03-11 17 #define __SYSCALL_SE_DEFINEx(x, prefix, name, ...) \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 18 static long __se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 19 static long __se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) a9ad73295cc1e3 Sami Tolvanen 2024-03-11 20 08d0ce30e0e4fc Sami Tolvanen 2023-07-10 21 #define SC_RISCV_REGS_TO_ARGS(x, ...) \ 08d0ce30e0e4fc Sami Tolvanen 2023-07-10 22 __MAP(x,__SC_ARGS \ 08d0ce30e0e4fc Sami Tolvanen 2023-07-10 23 ,,regs->orig_a0,,regs->a1,,regs->a2 \ 08d0ce30e0e4fc Sami Tolvanen 2023-07-10 24 ,,regs->a3,,regs->a4,,regs->a5,,regs->a6) 08d0ce30e0e4fc Sami Tolvanen 2023-07-10 25 a9ad73295cc1e3 Sami Tolvanen 2024-03-11 26 #else a9ad73295cc1e3 Sami Tolvanen 2024-03-11 27 /* a9ad73295cc1e3 Sami Tolvanen 2024-03-11 28 * Use type aliasing to ensure registers a0-a6 are correctly passed to the syscall a9ad73295cc1e3 Sami Tolvanen 2024-03-11 29 * implementation when >word-size arguments are used. a9ad73295cc1e3 Sami Tolvanen 2024-03-11 30 */ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 31 #define __SYSCALL_SE_DEFINEx(x, prefix, name, ...) \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 32 __diag_push(); \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 33 __diag_ignore(GCC, 8, "-Wattribute-alias", \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 34 "Type aliasing is used to sanitize syscall arguments"); \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 @35 static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 36 ulong) \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 37 __attribute__((alias(__stringify(___se_##prefix##name)))); \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 38 __diag_pop(); \ 653650c468be21 Sami Tolvanen 2024-03-26 39 static long noinline ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \ 653650c468be21 Sami Tolvanen 2024-03-26 40 __used; \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 41 static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) a9ad73295cc1e3 Sami Tolvanen 2024-03-11 42 :::::: The code at line 35 was first introduced by commit :::::: a9ad73295cc1e3af0253eee7d08943b2419444c4 riscv: Fix syscall wrapper for >word-size arguments :::::: TO: Sami Tolvanen :::::: CC: Palmer Dabbelt -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki