arch/xtensa/kernel/traps.c:530:17: sparse: void extern [addressable] [noreturn] [toplevel] die( ... )

From: kernel test robot
Date: Mon Nov 22 2021 - 22:16:20 EST

tree: master
head: ee1703cda8dc777e937dec172da55beaf1a74919
commit: 9fd5a04d8efcbf511286dd36c46fd70a645b167d exit: Remove calls of do_exit after noreturn versions of die
date: 4 weeks ago
config: xtensa-randconfig-s032-20211115 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 11.2.0
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add linus
git fetch --no-tags linus master
git checkout 9fd5a04d8efcbf511286dd36c46fd70a645b167d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <yujie.liu@xxxxxxxxx>

sparse warnings: (new ones prefixed by >>)

>> arch/xtensa/kernel/traps.c:530:17: sparse: sparse: symbol 'die' redeclared with different type (different modifiers):
>> arch/xtensa/kernel/traps.c:530:17: sparse: void extern [addressable] [noreturn] [toplevel] die( ... )
>> arch/xtensa/kernel/traps.c:167:6: sparse: note: previously declared as:
>> arch/xtensa/kernel/traps.c:167:6: sparse: void extern [addressable] [toplevel] die( ... )

vim +530 arch/xtensa/kernel/traps.c

5a0015d62668e64 Chris Zankel 2005-06-23 529
9fd5a04d8efcbf5 Eric W. Biederman 2021-10-20 @530 void __noreturn die(const char * str, struct pt_regs * regs, long err)

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip