tree:
git://git.infradead.org/users/hch/block.git block-bounce-cleanup
head: 6b1b8e36f63fe989298a53f04961018c1785f0b3
commit: 6b1b8e36f63fe989298a53f04961018c1785f0b3 [6/6] block: only build the block layer
bounce buffering if drivers need it
config: x86_64-randconfig-c022-20210311 (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 block-bounce-cleanup
git checkout 6b1b8e36f63fe989298a53f04961018c1785f0b3
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: block/blk-mq.o: in function `blk_queue_bounce':
block/blk.h:332: undefined reference to `__blk_queue_bounce'
ld: drivers/block/floppy.o: in function `floppy_alloc_disk':
> drivers/block/floppy.c:4600: undefined reference to
`blk_queue_bounce_limit'
ld: drivers/scsi/scsi_lib.o: in function
`__scsi_init_queue':
> drivers/scsi/scsi_lib.c:1825: undefined reference to
`blk_queue_bounce_limit'
vim +4600 drivers/block/floppy.c
8d3ab4ebfd7435 Herton Ronaldo Krzesinski 2012-08-27 4582
302cfee150291c Christoph Hellwig 2020-10-29 4583 static int
floppy_alloc_disk(unsigned int drive, unsigned int type)
^1da177e4c3f41 Linus Torvalds 2005-04-16 4584 {
302cfee150291c Christoph Hellwig 2020-10-29 4585 struct gendisk *disk;
302cfee150291c Christoph Hellwig 2020-10-29 4586 int err;
302cfee150291c Christoph Hellwig 2020-10-29 4587
302cfee150291c Christoph Hellwig 2020-10-29 4588 disk = alloc_disk(1);
302cfee150291c Christoph Hellwig 2020-10-29 4589 if (!disk)
302cfee150291c Christoph Hellwig 2020-10-29 4590 return -ENOMEM;
302cfee150291c Christoph Hellwig 2020-10-29 4591
302cfee150291c Christoph Hellwig 2020-10-29 4592 disk->queue =
blk_mq_init_queue(&tag_sets[drive]);
302cfee150291c Christoph Hellwig 2020-10-29 4593 if (IS_ERR(disk->queue)) {
302cfee150291c Christoph Hellwig 2020-10-29 4594 err =
PTR_ERR(disk->queue);
302cfee150291c Christoph Hellwig 2020-10-29 4595 disk->queue = NULL;
302cfee150291c Christoph Hellwig 2020-10-29 4596 put_disk(disk);
302cfee150291c Christoph Hellwig 2020-10-29 4597 return err;
302cfee150291c Christoph Hellwig 2020-10-29 4598 }
302cfee150291c Christoph Hellwig 2020-10-29 4599
302cfee150291c Christoph Hellwig 2020-10-29 @4600
blk_queue_bounce_limit(disk->queue, BLK_BOUNCE_HIGH);
302cfee150291c Christoph Hellwig 2020-10-29 4601
blk_queue_max_hw_sectors(disk->queue, 64);
302cfee150291c Christoph Hellwig 2020-10-29 4602 disk->major =
FLOPPY_MAJOR;
302cfee150291c Christoph Hellwig 2020-10-29 4603 disk->first_minor =
TOMINOR(drive) | (type << 2);
302cfee150291c Christoph Hellwig 2020-10-29 4604 disk->fops =
&floppy_fops;
302cfee150291c Christoph Hellwig 2020-10-29 4605 disk->events =
DISK_EVENT_MEDIA_CHANGE;
302cfee150291c Christoph Hellwig 2020-10-29 4606 if (type)
302cfee150291c Christoph Hellwig 2020-10-29 4607 sprintf(disk->disk_name,
"fd%d_type%d", drive, type);
302cfee150291c Christoph Hellwig 2020-10-29 4608 else
302cfee150291c Christoph Hellwig 2020-10-29 4609 sprintf(disk->disk_name,
"fd%d", drive);
302cfee150291c Christoph Hellwig 2020-10-29 4610 /* to be cleaned up... */
302cfee150291c Christoph Hellwig 2020-10-29 4611 disk->private_data = (void
*)(long)drive;
302cfee150291c Christoph Hellwig 2020-10-29 4612 disk->flags |=
GENHD_FL_REMOVABLE;
302cfee150291c Christoph Hellwig 2020-10-29 4613
302cfee150291c Christoph Hellwig 2020-10-29 4614 disks[drive][type] = disk;
302cfee150291c Christoph Hellwig 2020-10-29 4615 return 0;
302cfee150291c Christoph Hellwig 2020-10-29 4616 }
302cfee150291c Christoph Hellwig 2020-10-29 4617
:::::: The code at line 4600 was first introduced by commit
:::::: 302cfee150291c6cd85b1ca197d062d0b423d09c floppy: use a separate gendisk for each
media format
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org