From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-block:gendisk-flags 3/10] drivers/block/xen-blkfront.c:515:30: error: 'GENHD_FL_CD' undeclared; did you mean 'GENHD_FL_HIDDEN'?
Date: Fri, 03 Sep 2021 08:44:36 +0800 [thread overview]
Message-ID: <202109030826.BSTPSDce-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3234 bytes --]
tree: git://git.infradead.org/users/hch/block.git gendisk-flags
head: 5fab467156d2c320048a758a2be94eb83bcec2dd
commit: c86a6041f6d37fe080d131e9e7fdd5354c1ffdaf [3/10] block: remove GENHD_FL_CD
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block gendisk-flags
git checkout c86a6041f6d37fe080d131e9e7fdd5354c1ffdaf
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
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 >>):
drivers/block/xen-blkfront.c: In function 'blkif_ioctl':
>> drivers/block/xen-blkfront.c:515:30: error: 'GENHD_FL_CD' undeclared (first use in this function); did you mean 'GENHD_FL_HIDDEN'?
515 | if (bdev->bd_disk->flags & GENHD_FL_CD)
| ^~~~~~~~~~~
| GENHD_FL_HIDDEN
drivers/block/xen-blkfront.c:515:30: note: each undeclared identifier is reported only once for each function it appears in
vim +515 drivers/block/xen-blkfront.c
597592d951cdca Ian Campbell 2008-02-21 502
a63c848b04052a Al Viro 2008-03-02 503 static int blkif_ioctl(struct block_device *bdev, fmode_t mode,
440a01a7f46742 Christian Limpach 2008-06-17 504 unsigned command, unsigned long argument)
440a01a7f46742 Christian Limpach 2008-06-17 505 {
440a01a7f46742 Christian Limpach 2008-06-17 506 int i;
440a01a7f46742 Christian Limpach 2008-06-17 507
440a01a7f46742 Christian Limpach 2008-06-17 508 switch (command) {
440a01a7f46742 Christian Limpach 2008-06-17 509 case CDROMMULTISESSION:
440a01a7f46742 Christian Limpach 2008-06-17 510 for (i = 0; i < sizeof(struct cdrom_multisession); i++)
440a01a7f46742 Christian Limpach 2008-06-17 511 if (put_user(0, (char __user *)(argument + i)))
440a01a7f46742 Christian Limpach 2008-06-17 512 return -EFAULT;
440a01a7f46742 Christian Limpach 2008-06-17 513 return 0;
05d69d950d9d84 Christoph Hellwig 2021-07-15 514 case CDROM_GET_CAPABILITY:
05d69d950d9d84 Christoph Hellwig 2021-07-15 @515 if (bdev->bd_disk->flags & GENHD_FL_CD)
440a01a7f46742 Christian Limpach 2008-06-17 516 return 0;
440a01a7f46742 Christian Limpach 2008-06-17 517 return -EINVAL;
440a01a7f46742 Christian Limpach 2008-06-17 518 default:
05d69d950d9d84 Christoph Hellwig 2021-07-15 519 return -EINVAL;
440a01a7f46742 Christian Limpach 2008-06-17 520 }
440a01a7f46742 Christian Limpach 2008-06-17 521 }
440a01a7f46742 Christian Limpach 2008-06-17 522
:::::: The code at line 515 was first introduced by commit
:::::: 05d69d950d9d84218fc9beafd02dea1f6a70e09e xen-blkfront: sanitize the removal state machine
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jens Axboe <axboe@kernel.dk>
---
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: 65724 bytes --]
reply other threads:[~2021-09-03 0:44 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=202109030826.BSTPSDce-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.