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: debe436e77c72fcee804fb867f275e6d31aa999c commit: e58a41c2226847fb1446f3942dc1b55af8acfe02 csky: uaccess.h: Coding convention with asm generic date: 7 months ago :::::: branch date: 8 hours ago :::::: commit date: 7 months ago config: csky-randconfig-m031-20211104 (attached as .config) 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: include/asm-generic/termios.h:59 kernel_termios_to_user_termio() warn: ignoring unreachable code. Old smatch warnings: arch/csky/include/asm/uaccess.h:202 __get_user_fn() error: uninitialized symbol 'retval'. include/asm-generic/termios.h:60 kernel_termios_to_user_termio() warn: ignoring unreachable code. include/asm-generic/termios.h:61 kernel_termios_to_user_termio() warn: ignoring unreachable code. include/asm-generic/termios.h:62 kernel_termios_to_user_termio() warn: ignoring unreachable code. vim +59 include/asm-generic/termios.h 6103ec56c65c33 Arnd Bergmann 2009-05-13 52 6103ec56c65c33 Arnd Bergmann 2009-05-13 53 /* 6103ec56c65c33 Arnd Bergmann 2009-05-13 54 * Translate a "termios" structure into a "termio". Ugh. 6103ec56c65c33 Arnd Bergmann 2009-05-13 55 */ 6103ec56c65c33 Arnd Bergmann 2009-05-13 56 static inline int kernel_termios_to_user_termio(struct termio __user *termio, 6103ec56c65c33 Arnd Bergmann 2009-05-13 57 struct ktermios *termios) 6103ec56c65c33 Arnd Bergmann 2009-05-13 58 { 6103ec56c65c33 Arnd Bergmann 2009-05-13 @59 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 || 6103ec56c65c33 Arnd Bergmann 2009-05-13 60 put_user(termios->c_oflag, &termio->c_oflag) < 0 || 6103ec56c65c33 Arnd Bergmann 2009-05-13 61 put_user(termios->c_cflag, &termio->c_cflag) < 0 || 6103ec56c65c33 Arnd Bergmann 2009-05-13 62 put_user(termios->c_lflag, &termio->c_lflag) < 0 || 6103ec56c65c33 Arnd Bergmann 2009-05-13 63 put_user(termios->c_line, &termio->c_line) < 0 || 6103ec56c65c33 Arnd Bergmann 2009-05-13 64 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0) 6103ec56c65c33 Arnd Bergmann 2009-05-13 65 return -EFAULT; 6103ec56c65c33 Arnd Bergmann 2009-05-13 66 6103ec56c65c33 Arnd Bergmann 2009-05-13 67 return 0; 6103ec56c65c33 Arnd Bergmann 2009-05-13 68 } 6103ec56c65c33 Arnd Bergmann 2009-05-13 69 :::::: The code at line 59 was first introduced by commit :::::: 6103ec56c65c33774c7c38652c8204120c3c7519 asm-generic: add generic ABI headers :::::: TO: Arnd Bergmann <[email protected]> :::::: CC: Arnd Bergmann <arnd@klappe2.(none)> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
