Hi Kees,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   2d743660786ec51f5c1fefd5782bbdee7b227db0
commit: 9b80e4c4ddaca3501177ed41e49d0928ba2122a8 overflow: Add __must_check 
attribute to check_*() helpers
date:   6 months ago
config: powerpc-randconfig-r005-20210407 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c060945b23a1c54d4b2a053ff4b093a2277b303d)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b80e4c4ddaca3501177ed41e49d0928ba2122a8
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 9b80e4c4ddaca3501177ed41e49d0928ba2122a8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   lib/test_overflow.c:92:1: warning: unused variable 'u64_tests' 
[-Wunused-const-variable]
   DEFINE_TEST_ARRAY(u64) = {
   ^
   lib/test_overflow.c:22:4: note: expanded from macro 'DEFINE_TEST_ARRAY'
           } t ## _tests[] __initconst
             ^
   <scratch space>:96:1: note: expanded from here
   u64_tests
   ^
   lib/test_overflow.c:189:1: warning: unused variable 's64_tests' 
[-Wunused-const-variable]
   DEFINE_TEST_ARRAY(s64) = {
   ^
   lib/test_overflow.c:22:4: note: expanded from macro 'DEFINE_TEST_ARRAY'
           } t ## _tests[] __initconst
             ^
   <scratch space>:108:1: note: expanded from here
   s64_tests
   ^
>> lib/test_overflow.c:291:19: warning: stack frame size of 1984 bytes in 
>> function 'test_overflow_shift' [-Wframe-larger-than=]
   static int __init test_overflow_shift(void)
                     ^
   3 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for HOTPLUG_CPU
   Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
   Selected by
   - PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE 
&& PM_SLEEP


vim +/test_overflow_shift +291 lib/test_overflow.c

8fee81aa459848 Kees Cook 2018-05-09  290  
d36b6ad27c7b95 Kees Cook 2018-08-01 @291  static int __init 
test_overflow_shift(void)
d36b6ad27c7b95 Kees Cook 2018-08-01  292  {
d36b6ad27c7b95 Kees Cook 2018-08-01  293        int err = 0;
d36b6ad27c7b95 Kees Cook 2018-08-01  294  

:::::: The code at line 291 was first introduced by commit
:::::: d36b6ad27c7b95e3f6bfbf6ea33757c8e8accf01 test_overflow: Add shift 
overflow tests

:::::: TO: Kees Cook <[email protected]>
:::::: CC: Jason Gunthorpe <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

Reply via email to