From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, arm@kernel.org
Subject: [soc:board-remove 154/217] drivers/mfd/max8925-core.c:44:30: warning: 'touch_devs' defined but not used
Date: Sun, 16 Aug 2026 20:30:25 +0800 [thread overview]
Message-ID: <202608162020.9k7w3mbZ-lkp@intel.com> (raw)
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
reply other threads:[~2026-08-16 12:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202608162020.9k7w3mbZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox