* [rafael-pm:bleeding-edge 9/22] drivers/platform/x86/acer-wmi-battery.c:292:9: error: call to undeclared function 'devm_battery_hook_register'; ISO C99 and later do not support implicit function declarations
@ 2026-11-11 8:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-11 8:31 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: llvm, oe-kbuild-all, linux-acpi, linux-pm
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: 51bafe2e7302403a43ba45415bf9a268a7fcaa05
commit: fafe4f5166bc3d43e28967efb9ea82b1f456b798 [9/22] Merge branch 'acpi-battery' into bleeding-edge
config: x86_64-randconfig-1000-20261111 (https://download.01.org/0day-ci/archive/20261111/202611111639.D9pOcfbe-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261111/202611111639.D9pOcfbe-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/202611111639.D9pOcfbe-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/platform/x86/acer-wmi-battery.c:292:9: error: call to undeclared function 'devm_battery_hook_register'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
292 | return devm_battery_hook_register(&data->wdev->dev, &data->hook);
| ^
drivers/platform/x86/acer-wmi-battery.c:292:9: note: did you mean 'acpi_battery_hook_register'?
include/acpi/battery.h:26:6: note: 'acpi_battery_hook_register' declared here
26 | void acpi_battery_hook_register(struct acpi_battery_hook *hook);
| ^
1 error generated.
vim +/devm_battery_hook_register +292 drivers/platform/x86/acer-wmi-battery.c
c72dd9994952eb Jelle van der Waa 2026-09-13 275
c72dd9994952eb Jelle van der Waa 2026-09-13 276 static int acer_wmi_battery_probe(struct wmi_device *wdev, const void *context)
c72dd9994952eb Jelle van der Waa 2026-09-13 277 {
c72dd9994952eb Jelle van der Waa 2026-09-13 278 struct acer_wmi_battery_data *data;
c72dd9994952eb Jelle van der Waa 2026-09-13 279
4dd10fbbeb9c33 Kees Cook 2026-10-28 280 data = devm_kzalloc_obj(&wdev->dev, *data);
c72dd9994952eb Jelle van der Waa 2026-09-13 281 if (!data)
c72dd9994952eb Jelle van der Waa 2026-09-13 282 return -ENOMEM;
c72dd9994952eb Jelle van der Waa 2026-09-13 283
c72dd9994952eb Jelle van der Waa 2026-09-13 284 dev_set_drvdata(&wdev->dev, data);
c72dd9994952eb Jelle van der Waa 2026-09-13 285 data->wdev = wdev;
c72dd9994952eb Jelle van der Waa 2026-09-13 286 data->battery_ext = health_mode ? &acer_wmi_battery_extension_v2
c72dd9994952eb Jelle van der Waa 2026-09-13 287 : &acer_wmi_battery_extension_v1;
c72dd9994952eb Jelle van der Waa 2026-09-13 288 data->hook.name = "Acer Battery Extension";
c72dd9994952eb Jelle van der Waa 2026-09-13 289 data->hook.add_battery = acer_battery_add;
c72dd9994952eb Jelle van der Waa 2026-09-13 290 data->hook.remove_battery = acer_battery_remove;
c72dd9994952eb Jelle van der Waa 2026-09-13 291
c72dd9994952eb Jelle van der Waa 2026-09-13 @292 return devm_battery_hook_register(&data->wdev->dev, &data->hook);
c72dd9994952eb Jelle van der Waa 2026-09-13 293 }
c72dd9994952eb Jelle van der Waa 2026-09-13 294
:::::: The code at line 292 was first introduced by commit
:::::: c72dd9994952eb09442827caecb945474ae3072b platform/x86: add Acer battery control driver
:::::: TO: Jelle van der Waa <jelle@vdwaa.nl>
:::::: 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-11-11 8:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 8:31 [rafael-pm:bleeding-edge 9/22] drivers/platform/x86/acer-wmi-battery.c:292:9: error: call to undeclared function 'devm_battery_hook_register'; ISO C99 and later do not support implicit function declarations 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