Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.14 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795955060; b=oUPNhstZx2aYB63Hgp0rMl5mkjYCHe1YXsF93xEBMbbKQLiuB4duvn0h7oRRp8hRyXdH ouAM//LxuWLiRGkb/3oNE/1oPnxPzlBQQfsyOeQ6DWGcka6ImJls5btA9A7Kf6lES3mqS oxFIFQVt8eyaVTJYpYI9IUHKTiP5p/rMhM0ZCuQGHRb02MhMkOApXWDpXs3e9vw7LlvJw MGaM/dZdCzvv8TnZqc+9DUFA8UBclmaVLEx1zQO8RW5sNQouULWE8VHXqbvT8UhF/BRFt NmyowOdvfAXFanwy1wOSbhUhbyjUfJK52EC/87fKpuTsXsGFLQDBw6+LrA2NaWD5z5Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795955060; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=bJ6eNzbYvxFQZxmb2MmkKdTaU5aecMKVuKXWhv/1HNE=; b=oyLunEDvJFqKTIxd420hIsDRQ9KPXVZXF4AIPRwikI7X46sqnlCDodeetgtGxuvOCHqZ EcBvJPkUyCLel71Jh38+lhmCCYxA3f3Et0OxqWM9q6494xNuMPh3pWCpMG+Wq+GpJ4KDw YxPNrR9RE5M6QGrIqzrNgr+2Q13wjIN3U6Ce6RkbuJSjzzZc9+6rsqe11vRolmOTPP+tK 4LPguGhki+9o1Um4Mpnq8tpCbOKQSkMrPCnyLzKWL/awS5H8rNAQMpkjv/IgFo0K8RiH9 f7OWw7cxTcghhfkCCnV9Puq7V55LV8zBXsGz6HZhTs7JehRyadbpJtL87t+e09Df6Zw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=JVayzYj6; arc=none smtp.remote-ip=192.198.163.14 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E92D3606A329 for ; Sun, 29 Nov 2026 12:24:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E92D3606A329 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.a=rsa-sha256 header.s=Intel header.b=JVayzYj6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795955060; x=1827491060; h=date:from:to:cc:subject:message-id; bh=N7iXTVIAsVc2yvkrcKnYcTGnYIy1p0cmrfHmxTHvJqQ=; b=JVayzYj6dqPQJvgsHsPu9V4+iFdgOViu7HlQc7B1ziGZ4QzPHZOcPqgD 0QgmeVLcJaiZarDRAyelZFnwbTC/CBFTrbOfpnUX/xJdX6iBRzymHR7bi bTgp2lNndYFlnNlGVG/5o4GICADb3pkvk0RUmniBRXZlqQbVedOyXHXmi KijwrZ+8NufJkuMYUTercpWm8zwm+zrxgHRYp2/qHfu0sYPNhC/Xv19ij IqCCXVKbzqQyyFCgcyDZpavVbFoKc3rk6mZ+u2tZA4DFQdfPnmEdk7yPg 0jkXtlET9ML9JojerVOqQzmUKp3oRKqSOxJtXqetyiCAkEQaGUd0Qa6UO g==; X-CSE-ConnectionGUID: r1KQUb/tQUafwvcu7VKB2Q== X-CSE-MsgGUID: ArMfHUv7T8WjdxqX+Pv5Mw== X-IronPort-AV: E=McAfee;i="6800,10657,11980"; a="4754689" X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4754689" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 04:24:18 -0800 X-CSE-ConnectionGUID: Rju7axHsS7qVpL0Ax9ougQ== X-CSE-MsgGUID: bL9fKPimSFS2KqlJ+xLhGw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4242542" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa010.jf.intel.com with ESMTP; 29 Nov 2026 04:24:17 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXdx0-0000000013g-3cPO; Sun, 29 Nov 2026 12:24:14 +0000 Date: Sun, 29 Nov 2026 13:23:32 +0100 From: kernel test robot To: Kumar Kartikeya Dwivedi Cc: oe-kbuild-all@lists.linux.dev Subject: [kkdwivedi:xrp-ext 116/185] arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_read_xrp' 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 unsign... Message-ID: <20261129132011.bKhPKAgi-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://github.com/kkdwivedi/linux xrp-ext head: 8f4a18d558eae3d5fb4828eb8f85d1e7b4fa53e2 commit: f6cba386d9a4c3cf417bb8c94c2382cb158834c1 [116/185] fs: Add read_xrp() config: riscv-randconfig-r2304-20261129 (https://download.01.org/0day-ci/archive/20261129/20261129132011.bKhPKAgi-lkp@intel.com/config) compiler: riscv32-linux-gcc (GCC) 8.5.0 sparse: v0.6.5-rc1-21-g84ec0658 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/20261129132011.bKhPKAgi-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/20261129132011.bKhPKAgi-lkp@intel.com/ All warnings (new ones prefixed by >>): ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:1232:1: note: in expansion of macro 'SYSCALL_DEFINE5' SYSCALL_DEFINE5(preadv, unsigned long, fd, const struct iovec __user *, vec, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_writev' 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, long int, long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:228:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:1226:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:45:14: note: aliased declaration here static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) ^~~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:228:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:1226:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_readv' 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, long int, long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:228:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:1220:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:45:14: note: aliased declaration here static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) ^~~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:228:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:1220:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_pwrite64' 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, long int, long int, long long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:856:1: note: in expansion of macro 'SYSCALL_DEFINE4' SYSCALL_DEFINE4(pwrite64, unsigned int, fd, const char __user *, buf, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:45:14: note: aliased declaration here static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) ^~~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:856:1: note: in expansion of macro 'SYSCALL_DEFINE4' SYSCALL_DEFINE4(pwrite64, unsigned int, fd, const char __user *, buf, ^~~~~~~~~~~~~~~ >> arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_read_xrp' 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, long int, long int, long long int, long int, long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:231:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:824:1: note: in expansion of macro 'SYSCALL_DEFINE6' SYSCALL_DEFINE6(read_xrp, unsigned int, fd, char __user *, data_buf, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:45:14: note: aliased declaration here static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) ^~~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:231:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:824:1: note: in expansion of macro 'SYSCALL_DEFINE6' SYSCALL_DEFINE6(read_xrp, unsigned int, fd, char __user *, data_buf, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_pread64' 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, long int, long int, long long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:750:1: note: in expansion of macro 'SYSCALL_DEFINE4' SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:45:14: note: aliased declaration here static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) ^~~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:229:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:750:1: note: in expansion of macro 'SYSCALL_DEFINE4' SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_write' 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, long int, long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:228:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:728:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:45:14: note: aliased declaration here static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) ^~~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:228:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ fs/read_write.c:728:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, ^~~~~~~~~~~~~~~ arch/riscv/include/asm/syscall_wrapper.h:39:14: warning: '__se_sys_read' 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, long int, long int)' [-Wattribute-alias] static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ^~~~~ arch/riscv/include/asm/syscall_wrapper.h:86:2: note: in expansion of macro '__SYSCALL_SE_DEFINEx' __SYSCALL_SE_DEFINEx(x, sys, name, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:237:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:228:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) vim +39 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", \ 175db11786bde9 Nathan Chancellor 2026-05-16 34 "Type aliasing is used to sanitize syscall arguments"); \ 175db11786bde9 Nathan Chancellor 2026-05-16 35 __diag_ignore(clang, 23, "-Wunknown-warning-option", \ 175db11786bde9 Nathan Chancellor 2026-05-16 36 "Avoid breaking versions without -Wattribute-alias"); \ 175db11786bde9 Nathan Chancellor 2026-05-16 37 __diag_ignore(clang, 23, "-Wattribute-alias", \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 38 "Type aliasing is used to sanitize syscall arguments"); \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 @39 static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 40 ulong) \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 41 __attribute__((alias(__stringify(___se_##prefix##name)))); \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 42 __diag_pop(); \ 653650c468be21 Sami Tolvanen 2024-03-26 43 static long noinline ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \ 653650c468be21 Sami Tolvanen 2024-03-26 44 __used; \ a9ad73295cc1e3 Sami Tolvanen 2024-03-11 45 static long ___se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) a9ad73295cc1e3 Sami Tolvanen 2024-03-11 46 :::::: The code at line 39 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