Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [soc:board-remove 154/217] drivers/mfd/max8925-core.c:44:30: warning: 'touch_devs' defined but not used
@ 2026-08-16 12:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-16 12:30 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-arm-kernel, arm

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git board-remove
head:   057394422bc04420585b2790b230d8a1f350ace8
commit: a4e72f5a88a6efa6a9edbb7e22c08bb45fd91940 [154/217] mfd: max8925: remove platform data probing
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260816/202608162020.9k7w3mbZ-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260816/202608162020.9k7w3mbZ-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608162020.9k7w3mbZ-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/mfd/max8925-core.c:44:30: warning: 'touch_devs' defined but not used [-Wunused-const-variable=]
      44 | static const struct mfd_cell touch_devs[] = {
         |                              ^~~~~~~~~~
--
   drivers/mfd/max8925-i2c.c: In function 'max8925_probe':
   drivers/mfd/max8925-i2c.c:146:9: error: 'ret' undeclared (first use in this function); did you mean 'net'?
     146 |         ret = of_property_read_u32(np, "maxim,tsc-irq", &chip->tsc_irq);
         |         ^~~
         |         net
   drivers/mfd/max8925-i2c.c:146:9: note: each undeclared identifier is reported only once for each function it appears in
   drivers/mfd/max8925-i2c.c:146:36: error: 'np' undeclared (first use in this function); did you mean 'up'?
     146 |         ret = of_property_read_u32(np, "maxim,tsc-irq", &chip->tsc_irq);
         |                                    ^~
         |                                    up
   In file included from include/linux/device.h:15,
                    from include/linux/platform_device.h:13,
                    from drivers/mfd/max8925-i2c.c:10:
   drivers/mfd/max8925-i2c.c:148:25: error: 'dev' undeclared (first use in this function); did you mean 'cdev'?
     148 |                 dev_err(dev, "Not found maxim,tsc-irq property\n");
         |                         ^~~
   include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                         ^~~
   drivers/mfd/max8925-i2c.c:148:17: note: in expansion of macro 'dev_err'
     148 |                 dev_err(dev, "Not found maxim,tsc-irq property\n");
         |                 ^~~~~~~
>> drivers/mfd/max8925-i2c.c:137:29: warning: unused variable 'node' [-Wunused-variable]
     137 |         struct device_node *node = client->dev.of_node;
         |                             ^~~~


vim +/touch_devs +44 drivers/mfd/max8925-core.c

1ad998934e9c6c Haojian Zhuang     2010-01-08  43  
7c0517b1716bc1 Geert Uytterhoeven 2013-11-18 @44  static const struct mfd_cell touch_devs[] = {
1ad998934e9c6c Haojian Zhuang     2010-01-08  45  	{
1ad998934e9c6c Haojian Zhuang     2010-01-08  46  		.name		= "max8925-touch",
1ad998934e9c6c Haojian Zhuang     2010-01-08  47  		.num_resources	= 1,
1ad998934e9c6c Haojian Zhuang     2010-01-08  48  		.resources	= &touch_resources[0],
1ad998934e9c6c Haojian Zhuang     2010-01-08  49  		.id		= -1,
1ad998934e9c6c Haojian Zhuang     2010-01-08  50  	},
1ad998934e9c6c Haojian Zhuang     2010-01-08  51  };
1ad998934e9c6c Haojian Zhuang     2010-01-08  52  

:::::: The code at line 44 was first introduced by commit
:::::: 7c0517b1716bc1aa873064290401a8ce2fbabc32 mfd: maxim: Constify struct mfd_cell where possible

:::::: TO: Geert Uytterhoeven <geert@linux-m68k.org>
:::::: CC: Lee Jones <lee.jones@linaro.org>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-16 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-16 12:30 [soc:board-remove 154/217] drivers/mfd/max8925-core.c:44:30: warning: 'touch_devs' defined but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox