* drivers/gpio/gpio-pca9570.c:42: warning: Function parameter or member 'chip_data' not described in 'pca9570'
@ 2023-08-17 7:11 kernel test robot
2023-08-17 9:55 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-08-17 7:11 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: oe-kbuild-all, linux-kernel, Andy Shevchenko, Linus Walleij
Hi Bartosz,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4853c74bd7ab7fdb83f319bd9ace8a08c031e9b6
commit: a3f7c1d6ddcbd487964c58ff246506a781e5be8f gpio: pca9570: rename platform_data to chip_data
date: 7 months ago
config: i386-randconfig-i015-20230817 (https://download.01.org/0day-ci/archive/20230817/202308171538.nKKUOtbg-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce: (https://download.01.org/0day-ci/archive/20230817/202308171538.nKKUOtbg-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/202308171538.nKKUOtbg-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpio/gpio-pca9570.c:42: warning: Function parameter or member 'chip_data' not described in 'pca9570'
vim +42 drivers/gpio/gpio-pca9570.c
b8a34582c7f7f2 Shubhrajyoti Datta 2022-10-26 29
16d44b6085c1d9 Sungbo Eo 2020-07-09 30 /**
16d44b6085c1d9 Sungbo Eo 2020-07-09 31 * struct pca9570 - GPIO driver data
16d44b6085c1d9 Sungbo Eo 2020-07-09 32 * @chip: GPIO controller chip
b8a34582c7f7f2 Shubhrajyoti Datta 2022-10-26 33 * @p_data: GPIO controller platform data
16d44b6085c1d9 Sungbo Eo 2020-07-09 34 * @lock: Protects write sequences
16d44b6085c1d9 Sungbo Eo 2020-07-09 35 * @out: Buffer for device register
16d44b6085c1d9 Sungbo Eo 2020-07-09 36 */
16d44b6085c1d9 Sungbo Eo 2020-07-09 37 struct pca9570 {
16d44b6085c1d9 Sungbo Eo 2020-07-09 38 struct gpio_chip chip;
a3f7c1d6ddcbd4 Bartosz Golaszewski 2022-12-30 39 const struct pca9570_chip_data *chip_data;
16d44b6085c1d9 Sungbo Eo 2020-07-09 40 struct mutex lock;
16d44b6085c1d9 Sungbo Eo 2020-07-09 41 u8 out;
16d44b6085c1d9 Sungbo Eo 2020-07-09 @42 };
16d44b6085c1d9 Sungbo Eo 2020-07-09 43
:::::: The code at line 42 was first introduced by commit
:::::: 16d44b6085c1d90884b264deb938a34ab85a9c6d gpio: pca9570: add GPO driver for PCA9570
:::::: TO: Sungbo Eo <mans0n@gorani.run>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: drivers/gpio/gpio-pca9570.c:42: warning: Function parameter or member 'chip_data' not described in 'pca9570'
2023-08-17 7:11 drivers/gpio/gpio-pca9570.c:42: warning: Function parameter or member 'chip_data' not described in 'pca9570' kernel test robot
@ 2023-08-17 9:55 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2023-08-17 9:55 UTC (permalink / raw)
To: kernel test robot
Cc: Bartosz Golaszewski, oe-kbuild-all, linux-kernel, Linus Walleij
On Thu, Aug 17, 2023 at 03:11:09PM +0800, kernel test robot wrote:
> Hi Bartosz,
...
> >> drivers/gpio/gpio-pca9570.c:42: warning: Function parameter or member 'chip_data' not described in 'pca9570'
Blame Bart for this :-)
> b8a34582c7f7f2 Shubhrajyoti Datta 2022-10-26 29
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 30 /**
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 31 * struct pca9570 - GPIO driver data
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 32 * @chip: GPIO controller chip
> b8a34582c7f7f2 Shubhrajyoti Datta 2022-10-26 33 * @p_data: GPIO controller platform data
So, should be @chip_data...
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 34 * @lock: Protects write sequences
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 35 * @out: Buffer for device register
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 36 */
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 37 struct pca9570 {
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 38 struct gpio_chip chip;
> a3f7c1d6ddcbd4 Bartosz Golaszewski 2022-12-30 39 const struct pca9570_chip_data *chip_data;
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 40 struct mutex lock;
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 41 u8 out;
> 16d44b6085c1d9 Sungbo Eo 2020-07-09 @42 };
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-17 9:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 7:11 drivers/gpio/gpio-pca9570.c:42: warning: Function parameter or member 'chip_data' not described in 'pca9570' kernel test robot
2023-08-17 9:55 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox