* [pdx86-platform-drivers-x86:review-ilpo-next 91/98] drivers/platform/x86/intel/int3472/led.c:52:6: warning: no previous prototype for function 'skl_int3472_unregister_led'
@ 2026-04-10 23:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-10 23:45 UTC (permalink / raw)
To: Marco Nenciarini
Cc: llvm, oe-kbuild-all, Andy Shevchenko, Hans de Goede,
Ilpo Järvinen , Hans de Goede
tree: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-ilpo-next
head: d0e6904dc063c19e470bb505eb010eb9f1b1148a
commit: bbd917d96aa152a5c4701964db5b28db666f7491 [91/98] platform/x86: int3472: Add support for GPIO type 0x02 (IR flood LED)
config: i386-buildonly-randconfig-001-20260411 (https://download.01.org/0day-ci/archive/20260411/202604110739.2oKNvfbw-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260411/202604110739.2oKNvfbw-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/202604110739.2oKNvfbw-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/platform/x86/intel/int3472/led.c:20:38: error: no member named 'led' in 'struct int3472_discrete_device'; did you mean 'leds'?
20 | struct int3472_led *led = &int3472->led;
| ^~~
| leds
include/linux/platform_data/x86/int3472.h:132:4: note: 'leds' declared here
132 | } leds[INT3472_MAX_LEDS];
| ^
drivers/platform/x86/intel/int3472/led.c:20:22: error: incompatible pointer types initializing 'struct int3472_led *' with an expression of type 'struct int3472_led (*)[2]' [-Werror,-Wincompatible-pointer-types]
20 | struct int3472_led *led = &int3472->led;
| ^ ~~~~~~~~~~~~~
drivers/platform/x86/intel/int3472/led.c:54:38: error: no member named 'led' in 'struct int3472_discrete_device'; did you mean 'leds'?
54 | struct int3472_led *led = &int3472->led;
| ^~~
| leds
include/linux/platform_data/x86/int3472.h:132:4: note: 'leds' declared here
132 | } leds[INT3472_MAX_LEDS];
| ^
drivers/platform/x86/intel/int3472/led.c:54:22: error: incompatible pointer types initializing 'struct int3472_led *' with an expression of type 'struct int3472_led (*)[2]' [-Werror,-Wincompatible-pointer-types]
54 | struct int3472_led *led = &int3472->led;
| ^ ~~~~~~~~~~~~~
>> drivers/platform/x86/intel/int3472/led.c:52:6: warning: no previous prototype for function 'skl_int3472_unregister_led' [-Wmissing-prototypes]
52 | void skl_int3472_unregister_led(struct int3472_discrete_device *int3472)
| ^
drivers/platform/x86/intel/int3472/led.c:52:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
52 | void skl_int3472_unregister_led(struct int3472_discrete_device *int3472)
| ^
| static
1 warning and 4 errors generated.
vim +/skl_int3472_unregister_led +52 drivers/platform/x86/intel/int3472/led.c
5ae20a8050d08a Hans de Goede 2023-01-27 51
39237e3208209d Marco Nenciarini 2026-04-01 @52 void skl_int3472_unregister_led(struct int3472_discrete_device *int3472)
:::::: The code at line 52 was first introduced by commit
:::::: 39237e3208209d1bb35d939d6fee1f36b642f562 platform/x86: int3472: Rename pled to led in LED registration code
:::::: TO: Marco Nenciarini <mnencia@kcore.it>
:::::: CC: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-10 23:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 23:45 [pdx86-platform-drivers-x86:review-ilpo-next 91/98] drivers/platform/x86/intel/int3472/led.c:52:6: warning: no previous prototype for function 'skl_int3472_unregister_led' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox