All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-block:gendisk-flags 3/10] drivers/block/xen-blkfront.c:515:30: error: 'GENHD_FL_CD' undeclared; did you mean 'GENHD_FL_HIDDEN'?
@ 2021-09-03  0:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-03  0:44 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-03  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-03  0:44 [hch-block:gendisk-flags 3/10] drivers/block/xen-blkfront.c:515:30: error: 'GENHD_FL_CD' undeclared; did you mean 'GENHD_FL_HIDDEN'? kernel test robot

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.