Linux Power Management development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org
Subject: [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
Date: Wed, 11 Nov 2026 16:31:14 +0800	[thread overview]
Message-ID: <202611111639.D9pOcfbe-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-11-11  8:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202611111639.D9pOcfbe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox