LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [linuxppc:fixes-test 1/2] arch/powerpc/include/asm/reg.h:66:29: error: left shift count >= width of type
@ 2021-09-11 15:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-11 15:13 UTC (permalink / raw)
  To: Nicholas Piggin; +Cc: kbuild-all, linux-kernel, Michael Ellerman

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

tree:   https://github.com/linuxppc/linux fixes-test
head:   d45e8e4cdd90ce2e6fc64b568229c56e68b638e8
commit: e0940aca08c125f641ee253c2db9f28f3edd2d97 [1/2] powerpc/64s: system call scv tabort fix for corrupt irq soft-mask state
config: powerpc-mpc837x_rdb_defconfig (attached as .config)
compiler: powerpc-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/linuxppc/linux/commit/e0940aca08c125f641ee253c2db9f28f3edd2d97
        git remote add linuxppc https://github.com/linuxppc/linux
        git fetch --no-tags linuxppc fixes-test
        git checkout e0940aca08c125f641ee253c2db9f28f3edd2d97
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 errors (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/ptrace.h:25,
                    from arch/powerpc/include/asm/hw_irq.h:12,
                    from arch/powerpc/include/asm/irqflags.h:12,
                    from include/linux/irqflags.h:16,
                    from include/asm-generic/cmpxchg-local.h:6,
                    from arch/powerpc/include/asm/cmpxchg.h:526,
                    from arch/powerpc/include/asm/atomic.h:11,
                    from include/linux/atomic.h:7,
                    from include/linux/rcupdate.h:25,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/context_tracking.h:5,
                    from arch/powerpc/kernel/interrupt.c:3:
   arch/powerpc/kernel/interrupt.c: In function 'system_call_exception':
>> arch/powerpc/include/asm/reg.h:66:29: error: left shift count >= width of type [-Werror=shift-count-overflow]
      66 | #define __MASK(X)       (1UL<<(X))
         |                             ^~
   arch/powerpc/include/asm/reg.h:1379:61: note: in definition of macro 'mtmsr'
    1379 |                                      : "r" ((unsigned long)(v)) \
         |                                                             ^
   arch/powerpc/include/asm/reg.h:115:25: note: in expansion of macro '__MASK'
     115 | #define MSR_TM          __MASK(MSR_TM_LG)       /* Transactional Mem Available */
         |                         ^~~~~~
   arch/powerpc/kernel/interrupt.c:151:33: note: in expansion of macro 'MSR_TM'
     151 |                 mtmsr(mfmsr() | MSR_TM);
         |                                 ^~~~~~
   cc1: all warnings being treated as errors


vim +66 arch/powerpc/include/asm/reg.h

14cf11af6cf608 include/asm-powerpc/reg.h Paul Mackerras 2005-09-26  62  
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  63  #ifdef __ASSEMBLY__
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  64  #define __MASK(X)	(1<<(X))
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  65  #else
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10 @66  #define __MASK(X)	(1UL<<(X))
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  67  #endif
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  68  

:::::: The code at line 66 was first introduced by commit
:::::: 9f04b9e327c495f8ddbf89c08da6cbe626e1b1b3 powerpc: Merged processor.h.

:::::: TO: Paul Mackerras <paulus@samba.org>
:::::: CC: Paul Mackerras <paulus@samba.org>

---
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: 18572 bytes --]

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

only message in thread, other threads:[~2021-09-11 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 15:13 [linuxppc:fixes-test 1/2] arch/powerpc/include/asm/reg.h:66:29: error: left shift count >= width of type kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).