Re: [PATCH 1/2] lib: Add module to simulate atomic sections for testing {preempt,irqs}off tracers
From: kbuild test robot
Date: Sun May 20 2018 - 19:34:41 EST
Hi Joel,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v4.17-rc6 next-20180517]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Joel-Fernandes/Tests-for-preemptoff-and-irqsoff-tracers/20180521-064835
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64
All warnings (new ones prefixed by >>):
lib/test_atomic_sections.c: In function 'atomic_sect_exit':
>> lib/test_atomic_sections.c:75:9: warning: 'return' with a value, in function returning void
return 0;
^
lib/test_atomic_sections.c:73:20: note: declared here
static void __exit atomic_sect_exit(void)
^~~~~~~~~~~~~~~~
vim +/return +75 lib/test_atomic_sections.c
72
73 static void __exit atomic_sect_exit(void)
74 {
> 75 return 0;
76 }
77
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip