All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 11/12] riscv: extable: add a dedicated uaccess handler
Date: Fri, 19 Nov 2021 01:31:32 +0800	[thread overview]
Message-ID: <202111190145.XnPWplZR-lkp@intel.com> (raw)
In-Reply-To: <20211118192651.605d0c80@xhacker>

[-- Attachment #1: Type: text/plain, Size: 27794 bytes --]

Hi Jisheng,

I love your patch! Yet something to improve:

[auto build test ERROR on bpf-next/master]
[also build test ERROR on bpf/master linus/master v5.16-rc1 next-20211118]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Jisheng-Zhang/riscv-switch-to-relative-extable-and-other-improvements/20211118-193905
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: riscv-rv32_defconfig (attached as .config)
compiler: riscv32-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/011a843af8007bfb9ff01a537e46e2ab6967dd23
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Jisheng-Zhang/riscv-switch-to-relative-extable-and-other-improvements/20211118-193905
        git checkout 011a843af8007bfb9ff01a537e46e2ab6967dd23
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/tty.h:5,
                    from init/do_mounts.c:6:
   include/asm-generic/termios.h: In function 'user_termio_to_kernel_termios':
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:25:13: note: in expansion of macro 'get_user'
      25 |         if (get_user(tmp, &termio->c_iflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:29:13: note: in expansion of macro 'get_user'
      29 |         if (get_user(tmp, &termio->c_oflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:33:13: note: in expansion of macro 'get_user'
      33 |         if (get_user(tmp, &termio->c_cflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:37:13: note: in expansion of macro 'get_user'
      37 |         if (get_user(tmp, &termio->c_lflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:41:13: note: in expansion of macro 'get_user'
      41 |         if (get_user(termios->c_line, &termio->c_line) < 0)
         |             ^~~~~~~~
   include/asm-generic/termios.h: In function 'kernel_termios_to_user_termio':
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:59:13: note: in expansion of macro 'put_user'
      59 |         if (put_user(termios->c_iflag, &termio->c_iflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:60:13: note: in expansion of macro 'put_user'
      60 |             put_user(termios->c_oflag, &termio->c_oflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:61:13: note: in expansion of macro 'put_user'
      61 |             put_user(termios->c_cflag, &termio->c_cflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:62:13: note: in expansion of macro 'put_user'
      62 |             put_user(termios->c_lflag, &termio->c_lflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:63:13: note: in expansion of macro 'put_user'
      63 |             put_user(termios->c_line,  &termio->c_line) < 0 ||
         |             ^~~~~~~~
--
   In file included from include/linux/uaccess.h:11,
                    from arch/riscv/kernel/signal.c:10:
   arch/riscv/kernel/signal.c: In function 'restore_fp_state':
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/signal.c:50:23: note: in expansion of macro '__get_user'
      50 |                 err = __get_user(value, &sc_fpregs->q.reserved[i]);
         |                       ^~~~~~~~~~
   arch/riscv/kernel/signal.c: In function 'save_fp_state':
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/signal.c:74:23: note: in expansion of macro '__put_user'
      74 |                 err = __put_user(0, &sc_fpregs->q.reserved[i]);
         |                       ^~~~~~~~~~
   arch/riscv/kernel/signal.c: In function 'setup_rt_frame':
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/signal.c:187:16: note: in expansion of macro '__put_user'
     187 |         err |= __put_user(0, &frame->uc.uc_flags);
         |                ^~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/signal.c:188:16: note: in expansion of macro '__put_user'
     188 |         err |= __put_user(NULL, &frame->uc.uc_link);
         |                ^~~~~~~~~~
   arch/riscv/kernel/signal.c: At top level:
   arch/riscv/kernel/signal.c:309:27: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
     309 | asmlinkage __visible void do_notify_resume(struct pt_regs *regs,
         |                           ^~~~~~~~~~~~~~~~
--
   In file included from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from kernel/fork.c:23:
   include/asm-generic/termios.h: In function 'user_termio_to_kernel_termios':
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:25:13: note: in expansion of macro 'get_user'
      25 |         if (get_user(tmp, &termio->c_iflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:29:13: note: in expansion of macro 'get_user'
      29 |         if (get_user(tmp, &termio->c_oflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:33:13: note: in expansion of macro 'get_user'
      33 |         if (get_user(tmp, &termio->c_cflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:37:13: note: in expansion of macro 'get_user'
      37 |         if (get_user(tmp, &termio->c_lflag) < 0)
         |             ^~~~~~~~
>> arch/riscv/include/asm/uaccess.h:113:9: error: expected ';' before 'if'
     113 |         if (err)                                                \
         |         ^~
   arch/riscv/include/asm/uaccess.h:133:17: note: in expansion of macro '__get_user_8'
     133 |                 __get_user_8((x), __gu_ptr, __gu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:168:9: note: in expansion of macro '__get_user_nocheck'
     168 |         __get_user_nocheck(x, __gu_ptr, __gu_err);              \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:196:17: note: in expansion of macro '__get_user'
     196 |                 __get_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:41:13: note: in expansion of macro 'get_user'
      41 |         if (get_user(termios->c_line, &termio->c_line) < 0)
         |             ^~~~~~~~
   include/asm-generic/termios.h: In function 'kernel_termios_to_user_termio':
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:59:13: note: in expansion of macro 'put_user'
      59 |         if (put_user(termios->c_iflag, &termio->c_iflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:60:13: note: in expansion of macro 'put_user'
      60 |             put_user(termios->c_oflag, &termio->c_oflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:61:13: note: in expansion of macro 'put_user'
      61 |             put_user(termios->c_cflag, &termio->c_cflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:62:13: note: in expansion of macro 'put_user'
      62 |             put_user(termios->c_lflag, &termio->c_lflag) < 0 ||
         |             ^~~~~~~~
   arch/riscv/include/asm/uaccess.h:220:19: warning: unused variable '__tmp' [-Wunused-variable]
     220 |         uintptr_t __tmp;                                        \
         |                   ^~~~~
   arch/riscv/include/asm/uaccess.h:249:17: note: in expansion of macro '__put_user_8'
     249 |                 __put_user_8((x), __gu_ptr, __pu_err);  \
         |                 ^~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:286:9: note: in expansion of macro '__put_user_nocheck'
     286 |         __put_user_nocheck(__val, __gu_ptr, __pu_err);          \
         |         ^~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:313:17: note: in expansion of macro '__put_user'
     313 |                 __put_user((x), __p) :                          \
         |                 ^~~~~~~~~~
   include/asm-generic/termios.h:63:13: note: in expansion of macro 'put_user'
      63 |             put_user(termios->c_line,  &termio->c_line) < 0 ||
         |             ^~~~~~~~
   kernel/fork.c: At top level:
   kernel/fork.c:161:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes]
     161 | void __weak arch_release_task_struct(struct task_struct *tsk)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~
   kernel/fork.c:763:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes]
     763 | void __init __weak arch_task_cache_init(void) { }
         |                    ^~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from kernel/fork.c:23:
..


vim +113 arch/riscv/include/asm/uaccess.h

    94	
    95	#ifdef CONFIG_64BIT
    96	#define __get_user_8(x, ptr, err) \
    97		__get_user_asm("ld", x, ptr, err)
    98	#else /* !CONFIG_64BIT */
    99	#define __get_user_8(x, ptr, err)				\
   100	do {								\
   101		u32 __user *__ptr = (u32 __user *)(ptr);		\
   102		u32 __lo, __hi;						\
   103		__asm__ __volatile__ (					\
   104			"1:\n"						\
   105			"	lw %1, %3\n"				\
   106			"2:\n"						\
   107			"	lw %2, %4\n"				\
   108			"3:\n"						\
   109			_ASM_EXTABLE_UACCESS_ERR_ZERO(1b, 3b, %0, %1)	\
   110			_ASM_EXTABLE_UACCESS_ERR_ZERO(2b, 3b, %0, %1)	\
   111			: "+r" (err), "=&r" (__lo), "=r" (__hi)		\
   112			: "m" (__ptr[__LSW]), "m" (__ptr[__MSW]))	\
 > 113		if (err)						\
   114			__hi = 0;					\
   115		(x) = (__typeof__(x))((__typeof__((x)-(x)))(		\
   116			(((u64)__hi << 32) | __lo)));			\
   117	} while (0)
   118	#endif /* CONFIG_64BIT */
   119	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 20905 bytes --]

  reply	other threads:[~2021-11-18 17:31 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-18 11:21 [PATCH v4 0/12] riscv: switch to relative extable and other improvements Jisheng Zhang
2021-11-18 11:21 ` Jisheng Zhang
2021-11-18 11:22 ` [PATCH 01/12] riscv: remove unused __cmpxchg_user() macro Jisheng Zhang
2021-11-18 11:22   ` Jisheng Zhang
2021-11-18 11:22 ` [PATCH 02/12] riscv: consolidate __ex_table construction Jisheng Zhang
2021-11-18 11:22   ` Jisheng Zhang
2021-11-18 11:22 ` [PATCH 03/12] riscv: switch to relative exception tables Jisheng Zhang
2021-11-18 11:22   ` Jisheng Zhang
2021-11-19  2:09   ` tongtiangen
2021-11-19  2:09     ` tongtiangen
2021-11-18 11:23 ` [PATCH 04/12] riscv: bpf: move rv_bpf_fixup_exception signature to extable.h Jisheng Zhang
2021-11-18 11:23   ` Jisheng Zhang
2021-11-18 11:24 ` [PATCH 05/12] riscv: extable: make fixup_exception() return bool Jisheng Zhang
2021-11-18 11:24   ` Jisheng Zhang
2021-11-18 11:24 ` [PATCH 06/12] riscv: extable: use `ex` for `exception_table_entry` Jisheng Zhang
2021-11-18 11:24   ` Jisheng Zhang
2021-11-18 11:25 ` [PATCH 07/12] riscv: lib: uaccess: fold fixups into body Jisheng Zhang
2021-11-18 11:25   ` Jisheng Zhang
2021-11-18 11:25 ` [PATCH 08/12] riscv: extable: consolidate definitions Jisheng Zhang
2021-11-18 11:25   ` Jisheng Zhang
2021-11-18 11:26 ` [PATCH 09/12] riscv: extable: add `type` and `data` fields Jisheng Zhang
2021-11-18 11:26   ` Jisheng Zhang
2021-11-18 11:42   ` Jisheng Zhang
2021-11-18 11:42     ` Jisheng Zhang
2021-11-18 15:21     ` Mark Rutland
2021-11-18 15:21       ` Mark Rutland
2022-01-06  3:21       ` Palmer Dabbelt
2022-01-06  3:21         ` Palmer Dabbelt
2022-01-06 10:23         ` Mark Rutland
2022-01-06 10:23           ` Mark Rutland
2021-11-19  2:35   ` tongtiangen
2021-11-19  2:35     ` tongtiangen
2021-11-18 11:26 ` [PATCH 10/12] riscv: add gpr-num.h Jisheng Zhang
2021-11-18 11:26   ` Jisheng Zhang
2021-11-18 11:26 ` [PATCH 11/12] riscv: extable: add a dedicated uaccess handler Jisheng Zhang
2021-11-18 11:26   ` Jisheng Zhang
2021-11-18 17:31   ` kernel test robot [this message]
2022-01-20 18:15   ` Mayuresh Chitale
2022-01-20 18:15     ` Mayuresh Chitale
2022-01-21 12:16     ` Jisheng Zhang
2022-01-21 12:16       ` Jisheng Zhang
2022-01-23  9:12       ` Jisheng Zhang
2022-01-23  9:12         ` Jisheng Zhang
2022-01-24 17:02         ` Mayuresh Chitale
2022-01-24 17:02           ` Mayuresh Chitale
2021-11-18 11:27 ` [PATCH 12/12] riscv: vmlinux.lds.S|vmlinux-xip.lds.S: remove `.fixup` section Jisheng Zhang
2021-11-18 11:27   ` Jisheng Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111190145.XnPWplZR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.