CC: [email protected] CC: [email protected] TO: Guo Ren <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 136057256686de39cc3a07c2e39ef6bc43003ff6 commit: e58a41c2226847fb1446f3942dc1b55af8acfe02 csky: uaccess.h: Coding convention with asm generic date: 7 months ago :::::: branch date: 2 days ago :::::: commit date: 7 months ago config: csky-randconfig-m031-20211123 (https://download.01.org/0day-ci/archive/20211124/[email protected]/config.gz) compiler: csky-linux-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> New smatch warnings: arch/csky/include/asm/uaccess.h:202 __get_user_fn() error: uninitialized symbol 'retval'. arch/csky/kernel/signal.c:146 setup_rt_frame() warn: ignoring unreachable code. arch/csky/include/asm/uaccess.h:202 __get_user_fn() error: uninitialized symbol 'retval'. arch/csky/include/asm/uaccess.h:202 __get_user_fn() error: uninitialized symbol 'retval'. Old smatch warnings: lib/test_user_copy.c:240 test_user_copy_init() warn: ignoring unreachable code. lib/test_user_copy.c:241 test_user_copy_init() warn: ignoring unreachable code. lib/test_user_copy.c:243 test_user_copy_init() warn: ignoring unreachable code. vim +/retval +202 arch/csky/include/asm/uaccess.h da551281947cb2c Guo Ren 2018-09-05 178 e58a41c2226847f Guo Ren 2021-04-21 179 static inline int __get_user_fn(size_t size, const void __user *ptr, void *x) e58a41c2226847f Guo Ren 2021-04-21 180 { e58a41c2226847f Guo Ren 2021-04-21 181 int retval; e58a41c2226847f Guo Ren 2021-04-21 182 u32 tmp; e58a41c2226847f Guo Ren 2021-04-21 183 e58a41c2226847f Guo Ren 2021-04-21 184 switch (size) { e58a41c2226847f Guo Ren 2021-04-21 185 case 1: e58a41c2226847f Guo Ren 2021-04-21 186 __get_user_asm_common(tmp, ptr, "ldb", retval); e58a41c2226847f Guo Ren 2021-04-21 187 *(u8 *)x = (u8)tmp; e58a41c2226847f Guo Ren 2021-04-21 188 break; e58a41c2226847f Guo Ren 2021-04-21 189 case 2: e58a41c2226847f Guo Ren 2021-04-21 190 __get_user_asm_common(tmp, ptr, "ldh", retval); e58a41c2226847f Guo Ren 2021-04-21 191 *(u16 *)x = (u16)tmp; e58a41c2226847f Guo Ren 2021-04-21 192 break; e58a41c2226847f Guo Ren 2021-04-21 193 case 4: e58a41c2226847f Guo Ren 2021-04-21 194 __get_user_asm_common(tmp, ptr, "ldw", retval); e58a41c2226847f Guo Ren 2021-04-21 195 *(u32 *)x = (u32)tmp; e58a41c2226847f Guo Ren 2021-04-21 196 break; e58a41c2226847f Guo Ren 2021-04-21 197 case 8: e58a41c2226847f Guo Ren 2021-04-21 198 __get_user_asm_64(x, ptr, retval); e58a41c2226847f Guo Ren 2021-04-21 199 break; e58a41c2226847f Guo Ren 2021-04-21 200 } e58a41c2226847f Guo Ren 2021-04-21 201 e58a41c2226847f Guo Ren 2021-04-21 @202 return retval; e58a41c2226847f Guo Ren 2021-04-21 203 } e58a41c2226847f Guo Ren 2021-04-21 204 #define __get_user_fn __get_user_fn e58a41c2226847f Guo Ren 2021-04-21 205 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
