Re: [PATCH 9/9] gpio: shared: generalize most code to firmware nodes

From: kernel test robot

Date: Thu Nov 05 2026 - 01:29:40 EST


Hi Bartosz,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4]

url: https://github.com/intel-lab-lkp/linux/commits/Bartosz-Golaszewski/device-property-fix-fwnode_name_eq-for-empty-node-names/20261104-150343
base: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
patch link: https://lore.kernel.org/r/20261104-fwnode-for-each-prop-v1-9-6e28fe1c72c4%40oss.qualcomm.com
patch subject: [PATCH 9/9] gpio: shared: generalize most code to firmware nodes
config: um-randconfig-1000-20261105 (https://download.01.org/0day-ci/archive/20261105/202611051423.Dk3ycCJc-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261105/202611051423.Dk3ycCJc-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611051423.Dk3ycCJc-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/gpio/gpiolib-shared.c:28:
In file included from drivers/gpio/gpiolib.h:16:
In file included from include/linux/gpio/driver.h:8:
In file included from include/linux/irqchip/chained_irq.h:10:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1209 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
>> drivers/gpio/gpiolib-shared.c:300:12: warning: function 'gpio_shared_fwnode_traverse' is not needed and will not be emitted [-Wunneeded-internal-declaration]
300 | static int gpio_shared_fwnode_traverse(struct fwnode_handle *curr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.


vim +/gpio_shared_fwnode_traverse +300 drivers/gpio/gpiolib-shared.c

299
> 300 static int gpio_shared_fwnode_traverse(struct fwnode_handle *curr)
301 {
302 int ret;
303
304 if (gpio_shared_fwnode_ignore(curr))
305 return 0;
306
307 ret = gpio_shared_fwnode_scan_properties(curr);
308 if (ret)
309 return ret;
310
311 fwnode_for_each_child_node_scoped(curr, child) {
312 ret = gpio_shared_fwnode_traverse(child);
313 if (ret)
314 return ret;
315 }
316
317 return 0;
318 }
319

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