[linux-nvme:nvme-6.5-merged 197/227] drivers/block/swim3.c:919:15: error: too many arguments to function 'floppy_locked_ioctl'

kernel test robot lkp at intel.com
Tue Jun 13 13:43:56 PDT 2023


tree:   git://git.infradead.org/nvme.git nvme-6.5-merged
head:   84a1df76eb397f3b8bf3a386bfcfb2e84f75554b
commit: 0f306bf5ab2690b12d1708273aaa974c790f838e [197/227] block: replace fmode_t with a block-specific type for block open flags
config: powerpc-buildonly-randconfig-r002-20230612 (https://download.01.org/0day-ci/archive/20230614/202306140401.DgFYAeVz-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add linux-nvme git://git.infradead.org/nvme.git
        git fetch --no-tags linux-nvme nvme-6.5-merged
        git checkout 0f306bf5ab2690b12d1708273aaa974c790f838e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/block/

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306140401.DgFYAeVz-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/block/swim3.c: In function 'floppy_ioctl':
>> drivers/block/swim3.c:919:15: error: too many arguments to function 'floppy_locked_ioctl'
     919 |         ret = floppy_locked_ioctl(bdev, mode, cmd, param);
         |               ^~~~~~~~~~~~~~~~~~~
   drivers/block/swim3.c:885:12: note: declared here
     885 | static int floppy_locked_ioctl(struct block_device *bdev,
         |            ^~~~~~~~~~~~~~~~~~~
   drivers/block/swim3.c: At top level:
   drivers/block/swim3.c:1280:5: warning: no previous prototype for 'swim3_init' [-Wmissing-prototypes]
    1280 | int swim3_init(void)
         |     ^~~~~~~~~~


vim +/floppy_locked_ioctl +919 drivers/block/swim3.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  912  
0f306bf5ab2690 Christoph Hellwig 2023-06-08  913  static int floppy_ioctl(struct block_device *bdev, blk_mode_t mode,
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  914  				 unsigned int cmd, unsigned long param)
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  915  {
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  916  	int ret;
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  917  
2a48fc0ab24241 Arnd Bergmann     2010-06-02  918  	mutex_lock(&swim3_mutex);
8a6cfeb6deca3a Arnd Bergmann     2010-07-08 @919  	ret = floppy_locked_ioctl(bdev, mode, cmd, param);
2a48fc0ab24241 Arnd Bergmann     2010-06-02  920  	mutex_unlock(&swim3_mutex);
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  921  
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  922  	return ret;
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  923  }
8a6cfeb6deca3a Arnd Bergmann     2010-07-08  924  

:::::: The code at line 919 was first introduced by commit
:::::: 8a6cfeb6deca3a8fefd639d898b0d163c0b5d368 block: push down BKL into .locked_ioctl

:::::: TO: Arnd Bergmann <arnd at arndb.de>
:::::: CC: Jens Axboe <jaxboe at fusionio.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the Linux-nvme mailing list