lkml.org 
[lkml]   [2019]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/platform/x86/asus-wmi.c:464: undefined reference to `battery_hook_unregister'
Hi Kristian,

FYI, the error/warning still remains.

tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 574cc4539762561d96b456dbc0544d8898bd4c6e
commit: 7973353e92ee1e7ca3b2eb361a4b7cb66c92abee platform/x86: asus-wmi: Refactor charge threshold to use the battery hooking API
date: 10 days ago
config: x86_64-randconfig-e001-201937 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout 7973353e92ee1e7ca3b2eb361a4b7cb66c92abee
# save the attached .config to linux build tree
make ARCH=x86_64

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

ld: drivers/platform/x86/asus-wmi.o: in function `asus_wmi_battery_exit':
>> drivers/platform/x86/asus-wmi.c:464: undefined reference to `battery_hook_unregister'
ld: drivers/platform/x86/asus-wmi.o: in function `asus_wmi_battery_init':
>> drivers/platform/x86/asus-wmi.c:457: undefined reference to `battery_hook_register'

vim +464 drivers/platform/x86/asus-wmi.c

451
452 static void asus_wmi_battery_init(struct asus_wmi *asus)
453 {
454 asus->battery_rsoc_available = false;
455 if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_RSOC)) {
456 asus->battery_rsoc_available = true;
> 457 battery_hook_register(&battery_hook);
458 }
459 }
460
461 static void asus_wmi_battery_exit(struct asus_wmi *asus)
462 {
463 if (asus->battery_rsoc_available)
> 464 battery_hook_unregister(&battery_hook);
465 }
466

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2019-09-20 05:25    [W:0.494 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site