linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* lib/test_overflow.c:291:19: warning: stack frame size of 1984 bytes in function 'test_overflow_shift'
@ 2021-04-07 14:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-07 14:37 UTC (permalink / raw)
  To: Kees Cook; +Cc: kbuild-all, clang-built-linux, linux-kernel

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

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 <lkp@intel.com>

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 <keescook@chromium.org>
:::::: CC: Jason Gunthorpe <jgg@mellanox.com>

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

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

only message in thread, other threads:[~2021-04-07 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 14:37 lib/test_overflow.c:291:19: warning: stack frame size of 1984 bytes in function 'test_overflow_shift' 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).