[hch-xfs:xfs-ioctl-cleanups 8/11] ./arch/s390/include/asm/uaccess.h:319:21: error: void value not ignored as it ought to be
kernel test robot <[email protected]> Sat, 25 Jul 2026 20:23:39 +0200
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: git://git.infradead.org/users/hch/xfs xfs-ioctl-cleanups head: 918653f059a2c63c9ed5316428d963be8a1d072a commit: 254f860b51b8d3b64bf5660c9028edd4fc248bfe [8/11] xfs: split out the handler for XFS_IOC_GOINGDOWN config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260725/[email protected]/config) compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260725/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All error/warnings (new ones prefixed by >>): fs/xfs/xfs_ioctl.c: In function 'xfs_ioc_growfs_rt': fs/xfs/xfs_ioctl.c:1329:34: warning: unused variable 'mp' [-Wunused-variable] 1329 | struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; | ^~ In file included from ./include/linux/uaccess.h:13, from ./include/linux/sched/task.h:13, from ./include/linux/sched/signal.h:9, from ./include/linux/rcuwait.h:6, from ./include/linux/mm.h:36, from fs/xfs/xfs_platform.h:12, from fs/xfs/xfs_ioctl.c:6: fs/xfs/xfs_ioctl.c: In function 'xfs_ioc_goingdown': >> ./arch/s390/include/asm/uaccess.h:319:23: warning: dereferencing 'void *' pointer 319 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ >> ./arch/s390/include/asm/uaccess.h:319:21: error: void value not ignored as it ought to be 319 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ ./arch/s390/include/asm/uaccess.h:327:23: warning: dereferencing 'void *' pointer 327 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ ./arch/s390/include/asm/uaccess.h:327:21: error: void value not ignored as it ought to be 327 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ ./arch/s390/include/asm/uaccess.h:335:23: warning: dereferencing 'void *' pointer 335 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ ./arch/s390/include/asm/uaccess.h:335:21: error: void value not ignored as it ought to be 335 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ ./arch/s390/include/asm/uaccess.h:343:23: warning: dereferencing 'void *' pointer 343 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ ./arch/s390/include/asm/uaccess.h:343:21: error: void value not ignored as it ought to be 343 | (x) = *(__force __typeof__(*(ptr)) *)&__x; \ | ^ ./arch/s390/include/asm/uaccess.h:356:9: note: in expansion of macro '__get_user' 356 | __get_user(x, ptr); \ | ^~~~~~~~~~ fs/xfs/xfs_ioctl.c:1353:13: note: in expansion of macro 'get_user' 1353 | if (get_user(in, arg)) | ^~~~~~~~ vim +319 ./arch/s390/include/asm/uaccess.h 454ede3f1424c3 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-01 306 ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 307 #define __get_user(x, ptr) \ ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 308 ({ \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 309 const __user void *____guptr = (ptr); \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 310 int __grc; \ d144182ed19af0 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-29 311 \ 17566c3c5ed3ea include/asm-s390/uaccess.h Al Viro 2005-08-23 312 __chk_user_ptr(ptr); \ ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 313 switch (sizeof(*(ptr))) { \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 314 case 1: { \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 315 const unsigned char __user *__guptr = ____guptr; \ 454ede3f1424c3 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-01 316 unsigned char __x; \ d144182ed19af0 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-29 317 \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 318 __grc = __get_user_char(&__x, __guptr, sizeof(*(ptr))); \ 97fa5a664e69f2 include/asm-s390/uaccess.h Al Viro 2006-02-03 @319 (x) = *(__force __typeof__(*(ptr)) *)&__x; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 320 break; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 321 }; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 322 case 2: { \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 323 const unsigned short __user *__guptr = ____guptr; \ 454ede3f1424c3 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-01 324 unsigned short __x; \ d144182ed19af0 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-29 325 \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 326 __grc = __get_user_short(&__x, __guptr, sizeof(*(ptr)));\ 97fa5a664e69f2 include/asm-s390/uaccess.h Al Viro 2006-02-03 327 (x) = *(__force __typeof__(*(ptr)) *)&__x; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 328 break; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 329 }; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 330 case 4: { \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 331 const unsigned int __user *__guptr = ____guptr; \ 454ede3f1424c3 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-01 332 unsigned int __x; \ d144182ed19af0 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-29 333 \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 334 __grc = __get_user_int(&__x, __guptr, sizeof(*(ptr))); \ 97fa5a664e69f2 include/asm-s390/uaccess.h Al Viro 2006-02-03 335 (x) = *(__force __typeof__(*(ptr)) *)&__x; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 336 break; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 337 }; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 338 case 8: { \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 339 const unsigned long __user *__guptr = ____guptr; \ 454ede3f1424c3 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-01 340 unsigned long __x; \ d144182ed19af0 arch/s390/include/asm/uaccess.h Heiko Carstens 2022-05-29 341 \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 342 __grc = __get_user_long(&__x, __guptr, sizeof(*(ptr))); \ 97fa5a664e69f2 include/asm-s390/uaccess.h Al Viro 2006-02-03 343 (x) = *(__force __typeof__(*(ptr)) *)&__x; \ ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 344 break; \ 1047aa77239976 include/asm-s390/uaccess.h Martin Schwidefsky 2005-11-07 345 }; \ ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 346 default: \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 347 __grc = __get_user_bad(); \ ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 348 break; \ ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 349 } \ 718056f9d96872 arch/s390/include/asm/uaccess.h Heiko Carstens 2025-01-13 350 __builtin_expect(__grc, 0); \ ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 351 }) ^1da177e4c3f41 include/asm-s390/uaccess.h Linus Torvalds 2005-04-16 352 :::::: The code at line 319 was first introduced by commit :::::: 97fa5a664e69f2fcdd2120e7f4765f8c1df56282 [PATCH] s390 __get_user() bogus warnings removal :::::: TO: Al Viro <[email protected]> :::::: CC: Al Viro <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki