All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [axboe-block:rw_iter 106/106] drivers/hid/usbhid/hiddev.c:849:25: error: initialization of 'int (*)(struct inode *, struct file *)' from incompatible pointer type 'ssize_t (*)(struct file *, char *, size_t, loff_t *)' {aka 'int (*)(struct file *, char *, unsigned int,  long long int ...
Date: Sun, 7 Apr 2024 02:51:21 +0800	[thread overview]
Message-ID: <202404070216.MvAPpbvf-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git rw_iter
head:   f5a71066e2fa8ca66dd137e17bac2e2090b3802d
commit: 090493bbcca026ff83c5bffe43b0f6873fd05303 [106/106] REMOVE ->read() and ->write()
config: i386-randconfig-063-20240406 (https://download.01.org/0day-ci/archive/20240407/202404070216.MvAPpbvf-lkp@intel.com/config)
compiler: gcc-11 (Ubuntu 11.4.0-4ubuntu1) 11.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240407/202404070216.MvAPpbvf-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404070216.MvAPpbvf-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/hid/usbhid/hiddev.c:849:10: error: 'const struct file_operations' has no member named 'read'
     849 |         .read =         hiddev_read,
         |          ^~~~
   drivers/hid/usbhid/hiddev.c:849:25: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     849 |         .read =         hiddev_read,
         |                         ^~~~~~~~~~~
   drivers/hid/usbhid/hiddev.c:849:25: note: (near initialization for 'hiddev_fops')
>> drivers/hid/usbhid/hiddev.c:849:25: error: initialization of 'int (*)(struct inode *, struct file *)' from incompatible pointer type 'ssize_t (*)(struct file *, char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/hid/usbhid/hiddev.c:849:25: note: (near initialization for 'hiddev_fops.release')
   drivers/hid/usbhid/hiddev.c:850:10: error: 'const struct file_operations' has no member named 'write'
     850 |         .write =        hiddev_write,
         |          ^~~~~
   drivers/hid/usbhid/hiddev.c:850:25: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     850 |         .write =        hiddev_write,
         |                         ^~~~~~~~~~~~
   drivers/hid/usbhid/hiddev.c:850:25: note: (near initialization for 'hiddev_fops')
   drivers/hid/usbhid/hiddev.c:850:25: error: initialization of 'int (*)(struct file *, struct vm_area_struct *)' from incompatible pointer type 'ssize_t (*)(struct file *, const char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, const char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/hid/usbhid/hiddev.c:850:25: note: (near initialization for 'hiddev_fops.mmap')
   drivers/hid/usbhid/hiddev.c:853:25: warning: initialized field overwritten [-Woverride-init]
     853 |         .release =      hiddev_release,
         |                         ^~~~~~~~~~~~~~
   drivers/hid/usbhid/hiddev.c:853:25: note: (near initialization for 'hiddev_fops.release')
   cc1: some warnings being treated as errors
--
   drivers/hid/hidraw.c:508:10: error: 'const struct file_operations' has no member named 'read'
     508 |         .read =         hidraw_read,
         |          ^~~~
   drivers/hid/hidraw.c:508:25: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     508 |         .read =         hidraw_read,
         |                         ^~~~~~~~~~~
   drivers/hid/hidraw.c:508:25: note: (near initialization for 'hidraw_ops')
>> drivers/hid/hidraw.c:508:25: error: initialization of 'int (*)(struct inode *, struct file *)' from incompatible pointer type 'ssize_t (*)(struct file *, char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/hid/hidraw.c:508:25: note: (near initialization for 'hidraw_ops.release')
   drivers/hid/hidraw.c:509:10: error: 'const struct file_operations' has no member named 'write'
     509 |         .write =        hidraw_write,
         |          ^~~~~
   drivers/hid/hidraw.c:509:25: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     509 |         .write =        hidraw_write,
         |                         ^~~~~~~~~~~~
   drivers/hid/hidraw.c:509:25: note: (near initialization for 'hidraw_ops')
   drivers/hid/hidraw.c:509:25: error: initialization of 'int (*)(struct file *, struct vm_area_struct *)' from incompatible pointer type 'ssize_t (*)(struct file *, const char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, const char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/hid/hidraw.c:509:25: note: (near initialization for 'hidraw_ops.mmap')
   drivers/hid/hidraw.c:512:25: warning: initialized field overwritten [-Woverride-init]
     512 |         .release =      hidraw_release,
         |                         ^~~~~~~~~~~~~~
   drivers/hid/hidraw.c:512:25: note: (near initialization for 'hidraw_ops.release')
   cc1: some warnings being treated as errors
--
   drivers/hid/hid-roccat.c:410:10: error: 'const struct file_operations' has no member named 'read'
     410 |         .read = roccat_read,
         |          ^~~~
   drivers/hid/hid-roccat.c:410:17: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     410 |         .read = roccat_read,
         |                 ^~~~~~~~~~~
   drivers/hid/hid-roccat.c:410:17: note: (near initialization for 'roccat_ops')
>> drivers/hid/hid-roccat.c:410:17: error: initialization of 'int (*)(struct inode *, struct file *)' from incompatible pointer type 'ssize_t (*)(struct file *, char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/hid/hid-roccat.c:410:17: note: (near initialization for 'roccat_ops.release')
   drivers/hid/hid-roccat.c:413:20: warning: initialized field overwritten [-Woverride-init]
     413 |         .release = roccat_release,
         |                    ^~~~~~~~~~~~~~
   drivers/hid/hid-roccat.c:413:20: note: (near initialization for 'roccat_ops.release')
   cc1: some warnings being treated as errors
--
   drivers/rtc/rtc-m41t80.c:847:10: error: 'const struct file_operations' has no member named 'read'
     847 |         .read   = wdt_read,
         |          ^~~~
   drivers/rtc/rtc-m41t80.c:847:19: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     847 |         .read   = wdt_read,
         |                   ^~~~~~~~
   drivers/rtc/rtc-m41t80.c:847:19: note: (near initialization for 'wdt_fops')
>> drivers/rtc/rtc-m41t80.c:847:19: error: initialization of 'int (*)(struct inode *, struct file *)' from incompatible pointer type 'ssize_t (*)(struct file *, char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/rtc/rtc-m41t80.c:847:19: note: (near initialization for 'wdt_fops.release')
   drivers/rtc/rtc-m41t80.c:850:10: error: 'const struct file_operations' has no member named 'write'
     850 |         .write  = wdt_write,
         |          ^~~~~
   drivers/rtc/rtc-m41t80.c:850:19: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     850 |         .write  = wdt_write,
         |                   ^~~~~~~~~
   drivers/rtc/rtc-m41t80.c:850:19: note: (near initialization for 'wdt_fops')
   drivers/rtc/rtc-m41t80.c:850:19: error: initialization of 'ssize_t (*)(struct kiocb *, struct iov_iter *)' {aka 'int (*)(struct kiocb *, struct iov_iter *)'} from incompatible pointer type 'ssize_t (*)(struct file *, const char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, const char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/rtc/rtc-m41t80.c:850:19: note: (near initialization for 'wdt_fops.read_iter')
   drivers/rtc/rtc-m41t80.c:852:20: warning: initialized field overwritten [-Woverride-init]
     852 |         .release = wdt_release,
         |                    ^~~~~~~~~~~
   drivers/rtc/rtc-m41t80.c:852:20: note: (near initialization for 'wdt_fops.release')
   cc1: some warnings being treated as errors
--
   drivers/watchdog/watchdog_dev.c:994:10: error: 'const struct file_operations' has no member named 'write'
     994 |         .write          = watchdog_write,
         |          ^~~~~
   drivers/watchdog/watchdog_dev.c:994:27: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     994 |         .write          = watchdog_write,
         |                           ^~~~~~~~~~~~~~
   drivers/watchdog/watchdog_dev.c:994:27: note: (near initialization for 'watchdog_fops')
>> drivers/watchdog/watchdog_dev.c:994:27: error: initialization of 'int (*)(struct inode *, struct file *)' from incompatible pointer type 'ssize_t (*)(struct file *, const char *, size_t,  loff_t *)' {aka 'int (*)(struct file *, const char *, unsigned int,  long long int *)'} [-Werror=incompatible-pointer-types]
   drivers/watchdog/watchdog_dev.c:994:27: note: (near initialization for 'watchdog_fops.release')
   drivers/watchdog/watchdog_dev.c:998:27: warning: initialized field overwritten [-Woverride-init]
     998 |         .release        = watchdog_release,
         |                           ^~~~~~~~~~~~~~~~
   drivers/watchdog/watchdog_dev.c:998:27: note: (near initialization for 'watchdog_fops.release')
   cc1: some warnings being treated as errors


vim +849 drivers/hid/usbhid/hiddev.c

^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  846  
066202dd48cf32 drivers/usb/input/hiddev.c  Luiz Fernando N. Capitulino 2006-08-05  847  static const struct file_operations hiddev_fops = {
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  848  	.owner =	THIS_MODULE,
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16 @849  	.read =		hiddev_read,
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  850  	.write =	hiddev_write,
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  851  	.poll =		hiddev_poll,
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  852  	.open =		hiddev_open,
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  853  	.release =	hiddev_release,
7961df16819085 drivers/hid/usbhid/hiddev.c Alan Cox                    2008-05-26  854  	.unlocked_ioctl =	hiddev_ioctl,
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  855  	.fasync =	hiddev_fasync,
407e9ef72476e6 drivers/hid/usbhid/hiddev.c Arnd Bergmann               2018-09-11  856  	.compat_ioctl	= compat_ptr_ioctl,
6038f373a3dc1f drivers/hid/usbhid/hiddev.c Arnd Bergmann               2010-08-15  857  	.llseek		= noop_llseek,
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  858  };
^1da177e4c3f41 drivers/usb/input/hiddev.c  Linus Torvalds              2005-04-16  859  

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

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

                 reply	other threads:[~2024-04-06 18:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202404070216.MvAPpbvf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.