[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'?

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

 



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@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux