All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-block:bi_bdev 10/15] block/blk-core.c:697:49: error: 'part' undeclared
Date: Thu, 21 Jan 2021 06:49:19 +0800	[thread overview]
Message-ID: <202101210604.im32BWX3-lkp@intel.com> (raw)

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

tree:   git://git.infradead.org/users/hch/block.git bi_bdev
head:   870c5257e68dfb7fec2875e1ac0056cfd636f38b
commit: acd826baaf9920c69383f300d1eab6dd060da5a9 [10/15] block: simplify submit_bio_checks a bit
config: parisc-randconfig-c004-20210120 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add hch-block git://git.infradead.org/users/hch/block.git
        git fetch --no-tags hch-block bi_bdev
        git checkout acd826baaf9920c69383f300d1eab6dd060da5a9
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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

All errors (new ones prefixed by >>):

   block/blk-core.c: In function 'bio_check_ro':
>> block/blk-core.c:697:49: error: 'part' undeclared (first use in this function)
     697 |  if (op_is_write(bio_op(bio)) && bdev_read_only(part)) {
         |                                                 ^~~~
   block/blk-core.c:697:49: note: each undeclared identifier is reported only once for each function it appears in


vim +/part +697 block/blk-core.c

c17bb4951752d3e0 block/ll_rw_blk.c Akinobu Mita      2006-12-08  694  
acd826baaf9920c6 block/blk-core.c  Christoph Hellwig 2021-01-20  695  static inline bool bio_check_ro(struct bio *bio)
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  696  {
9cbe50a9ebadbab8 block/blk-core.c  Christoph Hellwig 2020-12-08 @697  	if (op_is_write(bio_op(bio)) && bdev_read_only(part)) {
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  698  		char b[BDEVNAME_SIZE];
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  699  
8b2ded1c94c06f84 block/blk-core.c  Mikulas Patocka   2018-09-05  700  		if (op_is_flush(bio->bi_opf) && !bio_sectors(bio))
8b2ded1c94c06f84 block/blk-core.c  Mikulas Patocka   2018-09-05  701  			return false;
8b2ded1c94c06f84 block/blk-core.c  Mikulas Patocka   2018-09-05  702  
a32e236eb93e62a0 block/blk-core.c  Linus Torvalds    2018-08-03  703  		WARN_ONCE(1,
c8178674608679c8 block/blk-core.c  Christoph Hellwig 2020-07-01  704  		       "Trying to write to read-only block-device %s (partno %d)\n",
acd826baaf9920c6 block/blk-core.c  Christoph Hellwig 2021-01-20  705  			bio_devname(bio, b), bio->bi_bdev->bd_partno);
a32e236eb93e62a0 block/blk-core.c  Linus Torvalds    2018-08-03  706  		/* Older lvm-tools actually trigger this */
a32e236eb93e62a0 block/blk-core.c  Linus Torvalds    2018-08-03  707  		return false;
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  708  	}
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  709  
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  710  	return false;
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  711  }
721c7fc701c71f69 block/blk-core.c  Ilya Dryomov      2018-01-11  712  

:::::: The code at line 697 was first introduced by commit
:::::: 9cbe50a9ebadbab8676b697a4b66694067d17314 block: add a hard-readonly flag to struct gendisk

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Christoph Hellwig <hch@lst.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

                 reply	other threads:[~2021-01-20 22:49 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=202101210604.im32BWX3-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.