[driver-core:platform_groups 26/27] drivers/video/fbdev/wm8505fb.c:188:21: error: 'struct device_attribute' has no member named 'addr'; did you mean 'attr'?

kbuild test robot lkp at intel.com
Tue Jun 4 22:03:01 UTC 2019


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git platform_groups
head:   d770d421e93c93ceb55d6486e5ddeb65f21ca920
commit: 84cc896d582fc145f9c01b76f533707857d32d08 [26/27] video: fbdev: wm8505fb: convert platform driver to use dev_groups
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 84cc896d582fc145f9c01b76f533707857d32d08
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/video/fbdev/wm8505fb.c:188:21: error: 'struct device_attribute' has no member named 'addr'; did you mean 'attr'?
     &dev_attr_contrast.addr,
                        ^~~~
                        attr
>> drivers/video/fbdev/wm8505fb.c:411:16: error: 'wm8505fb_attributes' undeclared here (not in a function); did you mean 'wm8505fb_attrs'?
     .dev_groups = wm8505fb_attributes,
                   ^~~~~~~~~~~~~~~~~~~
                   wm8505fb_attrs
>> drivers/video/fbdev/wm8505fb.c:411:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
   drivers/video/fbdev/wm8505fb.c:411:16: note: (near initialization for 'wm8505fb_driver.dev_groups')
>> drivers/video/fbdev/wm8505fb.c:411:16: error: initializer element is not constant
   drivers/video/fbdev/wm8505fb.c:411:16: note: (near initialization for 'wm8505fb_driver.dev_groups')
   In file included from include/linux/kobject.h:20:0,
                    from include/linux/device.h:16,
                    from include/linux/dma-mapping.h:7,
                    from drivers/video/fbdev/wm8505fb.c:18:
   drivers/video/fbdev/wm8505fb.c:191:18: warning: 'wm8505fb_groups' defined but not used [-Wunused-variable]
    ATTRIBUTE_GROUPS(wm8505fb);
                     ^
   include/linux/sysfs.h:147:38: note: in definition of macro '__ATTRIBUTE_GROUPS'
    static const struct attribute_group *_name##_groups[] = { \
                                         ^~~~~
   drivers/video/fbdev/wm8505fb.c:191:1: note: in expansion of macro 'ATTRIBUTE_GROUPS'
    ATTRIBUTE_GROUPS(wm8505fb);
    ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +188 drivers/video/fbdev/wm8505fb.c

   186	
   187	static struct attribute *wm8505fb_attrs[] = {
 > 188		&dev_attr_contrast.addr,
   189		NULL,
   190	};
   191	ATTRIBUTE_GROUPS(wm8505fb);
   192	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 47540 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190605/1852eed1/attachment-0001.bin>


More information about the devel mailing list