All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:5.12.x+fslc 4/6] drivers/misc/uboot_bootcount.c:70:50: error: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'int (*)(struct device...
@ 2021-04-29 21:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-29 21:49 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4495 bytes --]

tree:   https://github.com/Freescale/linux-fslc 5.12.x+fslc
head:   533c005dbffa6950950622c514132d7b11c039bf
commit: 78c9cede1e8309fbce3522c4ec751d71e6cbd1d4 [4/6] drivers, misc: add U-Boot bootcount driver
config: s390-allmodconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.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://github.com/Freescale/linux-fslc/commit/78c9cede1e8309fbce3522c4ec751d71e6cbd1d4
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc 5.12.x+fslc
        git checkout 78c9cede1e8309fbce3522c4ec751d71e6cbd1d4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=s390 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/kobject.h:20,
                    from include/linux/energy_model.h:7,
                    from include/linux/device.h:16,
                    from include/linux/miscdevice.h:7,
                    from drivers/misc/uboot_bootcount.c:17:
>> drivers/misc/uboot_bootcount.c:70:50: error: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'int (*)(struct device *, struct device_attribute *, char *)' [-Werror=incompatible-pointer-types]
      70 | static DEVICE_ATTR(bootcount, S_IWUSR | S_IRUGO, show_str_bootcount,
         |                                                  ^~~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:104:10: note: in definition of macro '__ATTR'
     104 |  .show = _show,      \
         |          ^~~~~
   drivers/misc/uboot_bootcount.c:70:8: note: in expansion of macro 'DEVICE_ATTR'
      70 | static DEVICE_ATTR(bootcount, S_IWUSR | S_IRUGO, show_str_bootcount,
         |        ^~~~~~~~~~~
   drivers/misc/uboot_bootcount.c:70:50: note: (near initialization for 'dev_attr_bootcount.show')
      70 | static DEVICE_ATTR(bootcount, S_IWUSR | S_IRUGO, show_str_bootcount,
         |                                                  ^~~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:104:10: note: in definition of macro '__ATTR'
     104 |  .show = _show,      \
         |          ^~~~~
   drivers/misc/uboot_bootcount.c:70:8: note: in expansion of macro 'DEVICE_ATTR'
      70 | static DEVICE_ATTR(bootcount, S_IWUSR | S_IRUGO, show_str_bootcount,
         |        ^~~~~~~~~~~
>> drivers/misc/uboot_bootcount.c:71:3: error: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, const char *, size_t)' {aka 'long int (*)(struct device *, struct device_attribute *, const char *, long unsigned int)'} from incompatible pointer type 'int (*)(struct device *, struct device_attribute *, const char *, size_t)' {aka 'int (*)(struct device *, struct device_attribute *, const char *, long unsigned int)'} [-Werror=incompatible-pointer-types]
      71 |   store_str_bootcount);
         |   ^~~~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:105:11: note: in definition of macro '__ATTR'
     105 |  .store = _store,      \
         |           ^~~~~~
   drivers/misc/uboot_bootcount.c:70:8: note: in expansion of macro 'DEVICE_ATTR'
      70 | static DEVICE_ATTR(bootcount, S_IWUSR | S_IRUGO, show_str_bootcount,
         |        ^~~~~~~~~~~
   drivers/misc/uboot_bootcount.c:71:3: note: (near initialization for 'dev_attr_bootcount.store')
      71 |   store_str_bootcount);
         |   ^~~~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:105:11: note: in definition of macro '__ATTR'
     105 |  .store = _store,      \
         |           ^~~~~~
   drivers/misc/uboot_bootcount.c:70:8: note: in expansion of macro 'DEVICE_ATTR'
      70 | static DEVICE_ATTR(bootcount, S_IWUSR | S_IRUGO, show_str_bootcount,
         |        ^~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +70 drivers/misc/uboot_bootcount.c

    69	
  > 70	static DEVICE_ATTR(bootcount, S_IWUSR | S_IRUGO, show_str_bootcount,
  > 71			store_str_bootcount);
    72	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27979 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-29 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-29 21:49 [freescale-fslc:5.12.x+fslc 4/6] drivers/misc/uboot_bootcount.c:70:50: error: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'int (*)(struct device kernel test robot

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.