All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [block:for-5.6/block-test 12/12] block/blk-mq-tag.c:135:2: error: implicit declaration of function 'cpus_read_lock'
Date: Thu, 09 Jan 2020 21:51:21 +0800	[thread overview]
Message-ID: <202001092111.HTa2XKyJ%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1931 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.6/block-test
head:   584946919310652c384d95ee9d8a538ced9e62b7
commit: 584946919310652c384d95ee9d8a538ced9e62b7 [12/12] blk-mq: allocate tags in batches
config: mips-pnx8335_stb225_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 5.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 584946919310652c384d95ee9d8a538ced9e62b7
        # save the attached .config to linux build tree
        GCC_VERSION=5.5.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   block/blk-mq-tag.c: In function 'blk_mq_tag_flush_batches':
>> block/blk-mq-tag.c:135:2: error: implicit declaration of function 'cpus_read_lock' [-Werror=implicit-function-declaration]
     cpus_read_lock();
     ^
>> block/blk-mq-tag.c:141:2: error: implicit declaration of function 'cpus_read_unlock' [-Werror=implicit-function-declaration]
     cpus_read_unlock();
     ^
   cc1: some warnings being treated as errors

vim +/cpus_read_lock +135 block/blk-mq-tag.c

   128	
   129	static void blk_mq_tag_flush_batches(struct blk_mq_hw_ctx *hctx)
   130	{
   131		int cpu, err;
   132	
   133		if (atomic_cmpxchg(&hctx->flush_pending, 0, hctx->nr_ctx))
   134			return;
 > 135		cpus_read_lock();
   136		for_each_cpu(cpu, hctx->cpumask) {
   137			err = smp_call_function_single(cpu, ctx_flush_ipi, hctx, 0);
   138			if (err)
   139				atomic_dec(&hctx->flush_pending);
   140		}
 > 141		cpus_read_unlock();
   142	}
   143	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 13307 bytes --]

                 reply	other threads:[~2020-01-09 13:51 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=202001092111.HTa2XKyJ%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.