[soc:board-remove 160/217] drivers/mfd/88pm860x-core.c:841:13: warning: 'device_codec_init' defined but not used
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all,org.infradead.lists.linux-arm-kernel |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git board-remove head: 057394422bc04420585b2790b230d8a1f350ace8 commit: 59d0d39f2a1e71a171b677f5c4a10641c22d6fff [160/217] mfd: 88pm860x: remove pdata based probing config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260817/[email protected]/config) compiler: alpha-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260817/[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/mfd/88pm860x-core.c: In function 'pm860x_probe': drivers/mfd/88pm860x-core.c:985:36: error: 'np' undeclared (first use in this function); did you mean 'up'? 985 | ret = of_property_read_u32(np, "marvell,88pm860x-slave-addr", | ^~ | up drivers/mfd/88pm860x-core.c:985:36: note: each undeclared identifier is reported only once for each function it appears in In file included from include/linux/device.h:15, from include/linux/acpi.h:15, from include/linux/i2c.h:13, from drivers/mfd/88pm860x-core.c:13: drivers/mfd/88pm860x-core.c:988:25: error: 'dev' undeclared (first use in this function); did you mean 'cdev'? 988 | dev_err(dev, | ^~~ 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/88pm860x-core.c:988:17: note: in expansion of macro 'dev_err' 988 | dev_err(dev, | ^~~~~~~ drivers/mfd/88pm860x-core.c:980:29: warning: unused variable 'node' [-Wunused-variable] 980 | struct device_node *node = client->dev.of_node; | ^~~~ drivers/mfd/88pm860x-core.c: At top level: >> drivers/mfd/88pm860x-core.c:841:13: warning: 'device_codec_init' defined but not used [-Wunused-function] 841 | static void device_codec_init(struct pm860x_chip *chip) | ^~~~~~~~~~~~~~~~~ >> drivers/mfd/88pm860x-core.c:326:33: warning: 'chg_desc_regulator_data' defined but not used [-Wunused-variable] 326 | static struct charger_regulator chg_desc_regulator_data[] = { | ^~~~~~~~~~~~~~~~~~~~~~~ -- drivers/input/touchscreen/88pm860x-ts.c: In function 'pm860x_touch_probe': >> drivers/input/touchscreen/88pm860x-ts.c:174:34: warning: unused variable 'data' [-Wunused-variable] 174 | int irq, ret, res_x = 0, data = 0; | ^~~~ vim +/device_codec_init +841 drivers/mfd/88pm860x-core.c 840 > 841 static void device_codec_init(struct pm860x_chip *chip) 842 { 843 int ret; 844 845 codec_devs[0].num_resources = ARRAY_SIZE(codec_resources); 846 codec_devs[0].resources = &codec_resources[0]; 847 ret = mfd_add_devices(chip->dev, 0, &codec_devs[0], 848 ARRAY_SIZE(codec_devs), &codec_resources[0], 0, 849 NULL); 850 if (ret < 0) 851 dev_err(chip->dev, "Failed to add codec subdev\n"); 852 } 853 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki