tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core head: a69a38e26e87ddbe993e33b55f693405cd62c76f commit: 88d0fe4cbc5e74cda2764df63cb369f32746af54 [120/122] sched/headers: Move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> reproduce: # apt-get install sparse git checkout 88d0fe4cbc5e74cda2764df63cb369f32746af54 make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>) include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute drivers/mtd/tests/mtd_test.h:7:13: sparse: undefined identifier 'signal_pending' >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> In file included from drivers/mtd/tests/subpagetest.c:33:0: drivers/mtd/tests/mtd_test.h: In function 'mtdtest_relax': drivers/mtd/tests/mtd_test.h:7:6: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration] if (signal_pending(current)) { ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute drivers/mtd/tests/mtd_test.h:7:13: sparse: undefined identifier 'signal_pending' >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> In file included from drivers/mtd/tests/torturetest.c:36:0: drivers/mtd/tests/mtd_test.h: In function 'mtdtest_relax': drivers/mtd/tests/mtd_test.h:7:6: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration] if (signal_pending(current)) { ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute drivers/mtd/tests/mtd_test.h:7:13: sparse: undefined identifier 'signal_pending' >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> In file included from drivers/mtd/tests/pagetest.c:34:0: drivers/mtd/tests/mtd_test.h: In function 'mtdtest_relax': drivers/mtd/tests/mtd_test.h:7:6: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration] if (signal_pending(current)) { ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute drivers/mtd/tests/mtd_test.h:7:13: sparse: undefined identifier 'signal_pending' >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function <noident> In file included from drivers/mtd/tests/speedtest.c:34:0: drivers/mtd/tests/mtd_test.h: In function 'mtdtest_relax': drivers/mtd/tests/mtd_test.h:7:6: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration] if (signal_pending(current)) { ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +7 drivers/mtd/tests/mtd_test.h 084db4b0 Akinobu Mita 2013-08-03 1 #include <linux/mtd/mtd.h> 2a6a28e7 Richard Weinberger 2015-03-29 2 #include <linux/sched.h> 2a6a28e7 Richard Weinberger 2015-03-29 3 2a6a28e7 Richard Weinberger 2015-03-29 4 static inline int mtdtest_relax(void) 2a6a28e7 Richard Weinberger 2015-03-29 5 { 2a6a28e7 Richard Weinberger 2015-03-29 6 cond_resched(); 2a6a28e7 Richard Weinberger 2015-03-29 @7 if (signal_pending(current)) { 2a6a28e7 Richard Weinberger 2015-03-29 8 pr_info("aborting test due to pending signal!\n"); 2a6a28e7 Richard Weinberger 2015-03-29 9 return -EINTR; 2a6a28e7 Richard Weinberger 2015-03-29 10 } 2a6a28e7 Richard Weinberger 2015-03-29 11 2a6a28e7 Richard Weinberger 2015-03-29 12 return 0; 2a6a28e7 Richard Weinberger 2015-03-29 13 } 084db4b0 Akinobu Mita 2013-08-03 14 084db4b0 Akinobu Mita 2013-08-03 15 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum); :::::: The code at line 7 was first introduced by commit :::::: 2a6a28e7922c07c116ba8f2aa3682c03ef8be678 mtd: Make MTD tests cancelable :::::: TO: Richard Weinberger <rich...@nod.at> :::::: CC: Brian Norris <computersforpe...@gmail.com> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation