Skip to contentSkip to conversation

drivers/video/fbdev/mb862xx/mb862xxfbdrv.c:571:8: warning: unused variable 'dev_attr_dispregs'

PATCH kernel test robot 1 participant 1 message Aug 8

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6b8c8af514d739d0335f5579b585e02babe8a727
commit: 0738ecee1ab15aa75d2ea433e636d8cbf25623de [7580/13846] fbdev: mb862xx: replace dead select with dependency
config: powerpc64-randconfig-r054-20260808 (https://download.01.org/0day-ci/archive/20260808/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260808/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

drivers/video/fbdev/mb862xx/mb862xxfbdrv.c:411:12: warning: unused function 'mb862xxfb_init_fbinfo' [-Wunused-function]
411 | static int mb862xxfb_init_fbinfo(struct fb_info *fbi)
| ^~~~~~~~~~~~~~~~~~~~~

>> drivers/video/fbdev/mb862xx/mb862xxfbdrv.c:571:8: warning: unused variable 'dev_attr_dispregs' [-Wunused-variable]
     571 | static DEVICE_ATTR_RO(dispregs);
         |        ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:279:26: note: expanded from macro 'DEVICE_ATTR_RO'
     279 |         struct device_attribute dev_attr_##_name = __DEVICE_ATTR_RO(_name)
         |                                 ^~~~~~~~~~~~~~~~
   <scratch space>:124:1: note: expanded from here
     124 | dev_attr_dispregs
         | ^~~~~~~~~~~~~~~~~

drivers/video/fbdev/mb862xx/mb862xxfbdrv.c:573:20: warning: unused function 'mb862xx_intr' [-Wunused-function]
573 | static irqreturn_t mb862xx_intr(int irq, void *dev_id)
| ^~~~~~~~~~~~
3 warnings generated.

vim +/dev_attr_dispregs +571 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c

17a1217e12d8c8 drivers/video/mb862xx/mb862xxfb.c Anatolij Gustschin 2008-11-06 570
ff323d6d72e1e4 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c Zhen Lei 2021-06-01 @571 static DEVICE_ATTR_RO(dispregs);
17a1217e12d8c8 drivers/video/mb862xx/mb862xxfb.c Anatolij Gustschin 2008-11-06 572

:::::: The code at line 571 was first introduced by commit
:::::: ff323d6d72e1e4971c8ba9e2f3cf8afc48f22383 video: fbdev: mb862xx: use DEVICE_ATTR_RO macro

:::::: TO: Zhen Lei <[email protected]>
:::::: CC: Daniel Vetter <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki