[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202408271250.W4HQp7ZZ-lkp@intel.com>
Date: Tue, 27 Aug 2024 12:38:56 +0800
From: kernel test robot <lkp@...el.com>
To: Andrei Stefanescu <andrei.stefanescu@....nxp.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Chester Lin <chester62515@...il.com>,
Matthias Brugger <mbrugger@...e.com>,
Ghennadi Procopciuc <Ghennadi.Procopciuc@....com>,
Larisa Grigore <larisa.grigore@....com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
NXP S32 Linux Team <s32@....com>,
Andrei Stefanescu <andrei.stefanescu@....nxp.com>
Subject: Re: [PATCH 2/3] drivers: gpio: siul2-s32g2: add NXP S32G2/S32G3 SoCs
support
Hi Andrei,
kernel test robot noticed the following build warnings:
[auto build test WARNING on brgl/gpio/for-next]
[also build test WARNING on robh/for-next linus/master v6.11-rc5 next-20240826]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andrei-Stefanescu/dt-bindings-gpio-add-schema-for-NXP-S32G2-S32G3-SoCs/20240826-164853
base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
patch link: https://lore.kernel.org/r/20240826084214.2368673-3-andrei.stefanescu%40oss.nxp.com
patch subject: [PATCH 2/3] drivers: gpio: siul2-s32g2: add NXP S32G2/S32G3 SoCs support
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20240827/202408271250.W4HQp7ZZ-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240827/202408271250.W4HQp7ZZ-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408271250.W4HQp7ZZ-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/platform_device.h:13,
from drivers/gpio/gpio-siul2-s32g2.c:13:
drivers/gpio/gpio-siul2-s32g2.c: In function 'siul2_gpio_pads_init':
>> drivers/gpio/gpio-siul2-s32g2.c:341:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
341 | "Failed to initialize opad2%lu regmap config\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:154:56: note: in expansion of macro 'dev_fmt'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/gpio/gpio-siul2-s32g2.c:340:25: note: in expansion of macro 'dev_err'
340 | dev_err(dev,
| ^~~~~~~
drivers/gpio/gpio-siul2-s32g2.c:341:62: note: format string is defined here
341 | "Failed to initialize opad2%lu regmap config\n",
| ~~^
| |
| long unsigned int
| %u
drivers/gpio/gpio-siul2-s32g2.c:350:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
350 | "Failed to initialize ipad2%lu regmap config\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:154:56: note: in expansion of macro 'dev_fmt'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/gpio/gpio-siul2-s32g2.c:349:25: note: in expansion of macro 'dev_err'
349 | dev_err(dev,
| ^~~~~~~
drivers/gpio/gpio-siul2-s32g2.c:350:62: note: format string is defined here
350 | "Failed to initialize ipad2%lu regmap config\n",
| ~~^
| |
| long unsigned int
| %u
drivers/gpio/gpio-siul2-s32g2.c: In function 'siul2_gpio_probe':
drivers/gpio/gpio-siul2-s32g2.c:498:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
498 | "unable to get pinspec %lu from device tree\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:154:56: note: in expansion of macro 'dev_fmt'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/gpio/gpio-siul2-s32g2.c:497:25: note: in expansion of macro 'dev_err'
497 | dev_err(dev,
| ^~~~~~~
drivers/gpio/gpio-siul2-s32g2.c:498:58: note: format string is defined here
498 | "unable to get pinspec %lu from device tree\n",
| ~~^
| |
| long unsigned int
| %u
vim +341 drivers/gpio/gpio-siul2-s32g2.c
329
330 static int siul2_gpio_pads_init(struct platform_device *pdev,
331 struct siul2_gpio_dev *gpio_dev)
332 {
333 struct device *dev = &pdev->dev;
334 size_t i;
335
336 for (i = 0; i < ARRAY_SIZE(gpio_dev->siul2); i++) {
337 gpio_dev->siul2[i].opadmap = init_padregmap(pdev, gpio_dev, i,
338 false);
339 if (IS_ERR(gpio_dev->siul2[i].opadmap)) {
340 dev_err(dev,
> 341 "Failed to initialize opad2%lu regmap config\n",
342 i);
343 return PTR_ERR(gpio_dev->siul2[i].opadmap);
344 }
345
346 gpio_dev->siul2[i].ipadmap = init_padregmap(pdev, gpio_dev, i,
347 true);
348 if (IS_ERR(gpio_dev->siul2[i].ipadmap)) {
349 dev_err(dev,
350 "Failed to initialize ipad2%lu regmap config\n",
351 i);
352 return PTR_ERR(gpio_dev->siul2[i].ipadmap);
353 }
354 }
355
356 return 0;
357 }
358
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists