From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752028AbdBCBO7 (ORCPT ); Thu, 2 Feb 2017 20:14:59 -0500 Received: from mga03.intel.com ([134.134.136.65]:64199 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570AbdBCBO6 (ORCPT ); Thu, 2 Feb 2017 20:14:58 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,326,1477983600"; d="scan'208";a="60610446" Date: Fri, 3 Feb 2017 09:14:44 +0800 From: kbuild test robot To: Ingo Molnar Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com Subject: [tip:WIP.sched/core 120/122] drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function Message-ID: <201702030940.acafCJze%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 into 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 >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function 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 >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function 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 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 >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function >> drivers/mtd/tests/mtd_test.h:7:27: sparse: not a function 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 2a6a28e7 Richard Weinberger 2015-03-29 2 #include 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 :::::: CC: Brian Norris --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation