tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-5.10
head: 28d8a1bafb1d3ba5b9e84a0ef9f7505340737187
commit: 780010795b4baf104c7342591ece9396b522d751 [331/511] ataflop: use a separate gendisk
for each media format
config: m68k-defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.10
git checkout 780010795b4baf104c7342591ece9396b522d751
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
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 >>):
drivers/block/ataflop.c: In function 'atari_floppy_init':
> drivers/block/ataflop.c:2013:15: error: implicit declaration of
function '__register_blkdev'; did you mean 'unregister_blkdev'?
[-Werror=implicit-function-declaration]
2013 | ret =
__register_blkdev(FLOPPY_MAJOR, "fd", ataflop_probe);
| ^~~~~~~~~~~~~~~~~
| unregister_blkdev
cc1: some warnings being treated as errors
vim +2013 drivers/block/ataflop.c
2002
2003 static int __init atari_floppy_init (void)
2004 {
2005 int i;
2006 int ret;
2007
2008 if (!MACH_IS_ATARI)
2009 /* Amiga, Mac, ... don't have Atari-compatible floppy :-) */
2010 return -ENODEV;
2011
2012 mutex_lock(&ataflop_probe_lock);
2013 ret = __register_blkdev(FLOPPY_MAJOR, "fd",
ataflop_probe);
2014 if (ret)
2015 goto out_unlock;
2016
2017 for (i = 0; i < FD_MAX_UNITS; i++) {
2018 memset(&unit[i].tag_set, 0, sizeof(unit[i].tag_set));
2019 unit[i].tag_set.ops = &ataflop_mq_ops;
2020 unit[i].tag_set.nr_hw_queues = 1;
2021 unit[i].tag_set.nr_maps = 1;
2022 unit[i].tag_set.queue_depth = 2;
2023 unit[i].tag_set.numa_node = NUMA_NO_NODE;
2024 unit[i].tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
2025 ret = blk_mq_alloc_tag_set(&unit[i].tag_set);
2026 if (ret)
2027 goto err;
2028
2029 ret = ataflop_alloc_disk(i, 0);
2030 if (ret) {
2031 blk_mq_free_tag_set(&unit[i].tag_set);
2032 goto err;
2033 }
2034 }
2035
2036 if (UseTrackbuffer < 0)
2037 /* not set by user -> use default: for now, we turn
2038 track buffering off for all Medusas, though it
2039 could be used with ones that have a counter
2040 card. But the test is too hard :-( */
2041 UseTrackbuffer = !MACH_IS_MEDUSA;
2042
2043 /* initialize variables */
2044 SelectedDrive = -1;
2045 BufferDrive = -1;
2046
2047 DMABuffer = atari_stram_alloc(BUFFER_SIZE+512, "ataflop");
2048 if (!DMABuffer) {
2049 printk(KERN_ERR "atari_floppy_init: cannot get dma buffer\n");
2050 ret = -ENOMEM;
2051 goto err;
2052 }
2053 TrackBuffer = DMABuffer + 512;
2054 PhysDMABuffer = atari_stram_to_phys(DMABuffer);
2055 PhysTrackBuffer = virt_to_phys(TrackBuffer);
2056 BufferDrive = BufferSide = BufferTrack = -1;
2057
2058 for (i = 0; i < FD_MAX_UNITS; i++) {
2059 unit[i].track = -1;
2060 unit[i].flags = 0;
2061 add_disk(unit[i].disk[0]);
2062 }
2063
2064 printk(KERN_INFO "Atari floppy driver: max. %cD, %strack buffering\n",
2065 DriveType == 0 ? 'D' : DriveType == 1 ? 'H' : 'E',
2066 UseTrackbuffer ? "" : "no ");
2067 config_types();
2068
2069 return 0;
2070
2071 err:
2072 while (--i >= 0) {
2073 blk_cleanup_queue(unit[i].disk[0]->queue);
2074 put_disk(unit[i].disk[0]);
2075 blk_mq_free_tag_set(&unit[i].tag_set);
2076 }
2077
2078 unregister_blkdev(FLOPPY_MAJOR, "fd");
2079 out_unlock:
2080 mutex_unlock(&ataflop_probe_lock);
2081 return ret;
2082 }
2083
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org