Re: [PATCH v3 02/10] pinctrl: core: add devm_pinctrl_register_mappings()

kernel test robot
2025-04-17T16:40:06Z

Hi Thomas,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8a834b0ac9ceb354a6e0b8cf5b363edca8221bdd]

url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Richard/gpiolib-add-support-to-register-sparse-pin-range/20250416-221852
base: 8a834b0ac9ceb354a6e0b8cf5b363edca8221bdd
patch link: https://lore.kernel.org/r/20250416-aaeon-up-board-pinctrl-support-v3-2-f40776bd06ee%40bootlin.com
patch subject: [PATCH v3 02/10] pinctrl: core: add devm_pinctrl_register_mappings()
config: i386-buildonly-randconfig-003-20250417 (https://download.01.org/0day-ci/archive/20250418/202504180047.vMkMYzD4-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250418/202504180047.vMkMYzD4-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/202504180047.vMkMYzD4-lkp@intel.com/

All warnings (new ones prefixed by >>):

In file included from include/linux/pinctrl/pinconf-generic.h:16,
from drivers/pinctrl/renesas/sh_pfc.h:12,
from drivers/pinctrl/renesas/pfc-r8a77965.c:18:
>> include/linux/pinctrl/machine.h:158:50: warning: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration
158 | extern int devm_pinctrl_register_mappings(struct device *dev,
| ^~~~~~

vim +158 include/linux/pinctrl/machine.h

155
156 extern int pinctrl_register_mappings(const struct pinctrl_map *map,
157 unsigned int num_maps);
> 158 extern int devm_pinctrl_register_mappings(struct device *dev,
159 const struct pinctrl_map *map,
160 unsigned int num_maps);
161 extern void pinctrl_unregister_mappings(const struct pinctrl_map *map);
162 extern void pinctrl_provide_dummies(void);
163 #else
164

--
0-DAY CI Kernel Test Service