All of lore.kernel.org
 help / color / mirror / Atom feed
* [block:tif-task_work 20/30] arch/powerpc/kernel/signal.c:328:24: warning: suggest parentheses around arithmetic in operand of '|'
@ 2020-10-10  1:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-10  1:57 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git tif-task_work
head:   c8db62ae267eb1de3e8fc4ac1c12c1618253e159
commit: 8ab455b11ce907563d6560d55c385c6a7c51a559 [20/30] powerpc: add support for TIF_NOTIFY_SIGNAL
config: powerpc-randconfig-p001-20201009 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=8ab455b11ce907563d6560d55c385c6a7c51a559
        git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
        git fetch --no-tags block tif-task_work
        git checkout 8ab455b11ce907563d6560d55c385c6a7c51a559
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

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

All error/warnings (new ones prefixed by >>):

   arch/powerpc/kernel/signal.c: In function 'do_notify_resume':
>> arch/powerpc/kernel/signal.c:328:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     328 |  if (thread_info_flags & (_TIF_SIGPENDING) | _TIF_NOTIFY_SIGNAL) {
         |      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
--
   arch/powerpc/kernel/exceptions-64e.S: Assembler messages:
>> arch/powerpc/kernel/exceptions-64e.S:1069: Error: operand out of range (0x000000000020606e is not between 0x0000000000000000 and 0x000000000000ffff)

vim +328 arch/powerpc/kernel/signal.c

   314	
   315	void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags)
   316	{
   317		user_exit();
   318	
   319		/* Check valid addr_limit, TIF check is done there */
   320		addr_limit_user_check();
   321	
   322		if (thread_info_flags & _TIF_UPROBE)
   323			uprobe_notify_resume(regs);
   324	
   325		if (thread_info_flags & _TIF_PATCH_PENDING)
   326			klp_update_patch_state(current);
   327	
 > 328		if (thread_info_flags & (_TIF_SIGPENDING) | _TIF_NOTIFY_SIGNAL) {
   329			BUG_ON(regs != current->thread.regs);
   330			do_signal(current, thread_info_flags);
   331		}
   332	
   333		if (thread_info_flags & _TIF_NOTIFY_RESUME) {
   334			tracehook_notify_resume(regs);
   335			rseq_handle_notify_resume(NULL, regs);
   336		}
   337	
   338		user_enter();
   339	}
   340	

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-10  1:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-10  1:57 [block:tif-task_work 20/30] arch/powerpc/kernel/signal.c:328:24: warning: suggest parentheses around arithmetic in operand of '|' kernel test robot

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.