[driver-core:platform_groups 28/29] drivers/video//fbdev/sm501fb.c:1283:1: note: in expansion of macro 'ATTRIBUTE_GROUPS'

kbuild test robot lkp at intel.com
Tue Jun 4 19:19:50 UTC 2019


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git platform_groups
head:   b3b12a24cfb8d0b56c0c320317e5bb02d947358c
commit: 3f8fb7c8cb8571eeb00d9849710b9a8f2050ec7c [28/29] video: fbdev: sm501fb: convert platform driver to use dev_groups
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-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 3f8fb7c8cb8571eeb00d9849710b9a8f2050ec7c
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=xtensa 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/kobject.h:20:0,
                    from include/linux/module.h:17,
                    from drivers/video//fbdev/sm501fb.c:14:
   drivers/video//fbdev/sm501fb.c:1283:18: warning: 'sm401fb_groups' defined but not used [-Wunused-variable]
    ATTRIBUTE_GROUPS(sm401fb);
                     ^
   include/linux/sysfs.h:147:38: note: in definition of macro '__ATTRIBUTE_GROUPS'
    static const struct attribute_group *_name##_groups[] = { \
                                         ^~~~~
>> drivers/video//fbdev/sm501fb.c:1283:1: note: in expansion of macro 'ATTRIBUTE_GROUPS'
    ATTRIBUTE_GROUPS(sm401fb);
    ^~~~~~~~~~~~~~~~

vim +/ATTRIBUTE_GROUPS +1283 drivers/video//fbdev/sm501fb.c

  1276	
  1277	static struct attribute *sm401fb_attrs[] = {
  1278		&dev_attr_crt_src.attr,
  1279		&dev_attr_fbregs_pnl.attr,
  1280		&dev_attr_fbregs_crt.attr,
  1281		NULL,
  1282	};
> 1283	ATTRIBUTE_GROUPS(sm401fb);
  1284	

---
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: 58633 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190605/723850bb/attachment-0001.bin>


More information about the devel mailing list