[viro-vfs:work.fd 7/20] drivers/block/ataflop.c:428:13: error: conflicting types for 'fd_error'; have 'void(void)'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.fd
head:   dc0f4cebf5202edcf915fa1ac5854b627ebf2036
commit: d6fe5281318c10a7351da7775bffa4ad5fe2e9a0 [7/20] introduce struct fderr, convert overlayfs uses to that
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240608/202406081712.rMU6ThCf-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240608/202406081712.rMU6ThCf-lkp@xxxxxxxxx/reproduce)

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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406081712.rMU6ThCf-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/block/ataflop.c:428:13: error: conflicting types for 'fd_error'; have 'void(void)'
     428 | static void fd_error( void );
         |             ^~~~~~~~
   In file included from include/linux/blkdev.h:27,
                    from include/linux/blk-mq.h:5,
                    from drivers/block/ataflop.c:70:
   include/linux/file.h:58:20: note: previous definition of 'fd_error' with type 'long int(struct fderr)'
      58 | static inline long fd_error(struct fderr f)
         |                    ^~~~~~~~


vim +428 drivers/block/ataflop.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  421  
^1da177e4c3f41 Linus Torvalds    2005-04-16  422  static void fd_select_side( int side );
^1da177e4c3f41 Linus Torvalds    2005-04-16  423  static void fd_select_drive( int drive );
^1da177e4c3f41 Linus Torvalds    2005-04-16  424  static void fd_deselect( void );
24ed960abf1d50 Kees Cook         2017-08-28  425  static void fd_motor_off_timer(struct timer_list *unused);
24ed960abf1d50 Kees Cook         2017-08-28  426  static void check_change(struct timer_list *unused);
7d12e780e003f9 David Howells     2006-10-05  427  static irqreturn_t floppy_irq (int irq, void *dummy);
^1da177e4c3f41 Linus Torvalds    2005-04-16 @428  static void fd_error( void );
^1da177e4c3f41 Linus Torvalds    2005-04-16  429  static int do_format(int drive, int type, struct atari_format_descr *desc);
^1da177e4c3f41 Linus Torvalds    2005-04-16  430  static void do_fd_action( int drive );
^1da177e4c3f41 Linus Torvalds    2005-04-16  431  static void fd_calibrate( void );
^1da177e4c3f41 Linus Torvalds    2005-04-16  432  static void fd_calibrate_done( int status );
^1da177e4c3f41 Linus Torvalds    2005-04-16  433  static void fd_seek( void );
^1da177e4c3f41 Linus Torvalds    2005-04-16  434  static void fd_seek_done( int status );
^1da177e4c3f41 Linus Torvalds    2005-04-16  435  static void fd_rwsec( void );
24ed960abf1d50 Kees Cook         2017-08-28  436  static void fd_readtrack_check(struct timer_list *unused);
^1da177e4c3f41 Linus Torvalds    2005-04-16  437  static void fd_rwsec_done( int status );
^1da177e4c3f41 Linus Torvalds    2005-04-16  438  static void fd_rwsec_done1(int status);
^1da177e4c3f41 Linus Torvalds    2005-04-16  439  static void fd_writetrack( void );
^1da177e4c3f41 Linus Torvalds    2005-04-16  440  static void fd_writetrack_done( int status );
24ed960abf1d50 Kees Cook         2017-08-28  441  static void fd_times_out(struct timer_list *unused);
^1da177e4c3f41 Linus Torvalds    2005-04-16  442  static void finish_fdc( void );
^1da177e4c3f41 Linus Torvalds    2005-04-16  443  static void finish_fdc_done( int dummy );
^1da177e4c3f41 Linus Torvalds    2005-04-16  444  static void setup_req_params( int drive );
05bdb9965305bb Christoph Hellwig 2023-06-08  445  static int fd_locked_ioctl(struct block_device *bdev, blk_mode_t mode,
05bdb9965305bb Christoph Hellwig 2023-06-08  446  		unsigned int cmd, unsigned long param);
^1da177e4c3f41 Linus Torvalds    2005-04-16  447  static void fd_probe( int drive );
^1da177e4c3f41 Linus Torvalds    2005-04-16  448  static int fd_test_drive_present( int drive );
^1da177e4c3f41 Linus Torvalds    2005-04-16  449  static void config_types( void );
05bdb9965305bb Christoph Hellwig 2023-06-08  450  static int floppy_open(struct gendisk *disk, blk_mode_t mode);
ae220766d87cd6 Christoph Hellwig 2023-06-08  451  static void floppy_release(struct gendisk *disk);
^1da177e4c3f41 Linus Torvalds    2005-04-16  452  

:::::: The code at line 428 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux