mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Ingo Molnar <mingo@kernel.org>
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 <noident>
Date: Fri, 3 Feb 2017 09:14:44 +0800	[thread overview]
Message-ID: <201702030940.acafCJze%fengguang.wu@intel.com> (raw)

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 <richard@nod.at>
:::::: CC: Brian Norris <computersforpeace@gmail.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

                 reply	other threads:[~2017-02-03  1:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201702030940.acafCJze%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tipbuild@zytor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®