Please kindly note that this is a powerpc32 build.

Hi Nicholas,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.14 next-20210903]
[cannot apply to powerpc/next scottwood/next]
[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/Nicholas-Piggin/powerpc-64s-system-call-scv-tabort-fix-for-corrupt-irq-soft-mask-state/20210903-205907
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
a9c9a6f741cdaa2fa9ba24a790db8d07295761e3
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: powerpc-randconfig-s032-20210903 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce:
        cd linux
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
make.cross
        chmod +x make.cross
        # 
https://github.com/0day-ci/linux/commit/3510c8c0951ec7ac98da8d6931df7499ca6c881e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review 
Nicholas-Piggin/powerpc-64s-system-call-scv-tabort-fix-for-corrupt-irq-soft-mask-state/20210903-205907
        git checkout 3510c8c0951ec7ac98da8d6931df7499ca6c881e
        # 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 <l...@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/processor.h:11,
                    from arch/powerpc/include/asm/thread_info.h:40,
                    from include/linux/thread_info.h:60,
                    from arch/powerpc/include/asm/ptrace.h:298,
                    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:1378:61: note: in definition of macro 'mtmsr'
    1378 |                                      : "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:153:33: note: in expansion of macro 'MSR_TM'
     153 |                 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

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

Attachment: .config.gz
Description: application/gzip

Reply via email to