tree:
https://github.com/Freescale/linux-fslc pr/493
head: 4095f16ba8dccb30a4b20aead5efc191a07f21f5
commit: 88f59122f76cf1f1a59b770abf44962f95ebfd95 [4/10] drivers, misc: add U-Boot
bootcount driver
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/Freescale/linux-fslc/commit/88f59122f76cf1f1a59b770abf...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/493
git checkout 88f59122f76cf1f1a59b770abf44962f95ebfd95
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
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@lists.01.org