lkml.org 
[lkml]   [2021]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[pdx86-platform-drivers-x86:review-hans 77/100] drivers/platform/x86/system76_acpi.c:295: undefined reference to `battery_hook_unregister'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-hans
head: fc3341b4b55f46ad0846a22ae149d94bac6ce40b
commit: 76f7eba3e0a248af4cc4f302d95031fa2fb65fab [77/100] platform/x86: system76_acpi: Add battery charging thresholds
config: i386-randconfig-a002-20211020 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?id=76f7eba3e0a248af4cc4f302d95031fa2fb65fab
git remote add pdx86-platform-drivers-x86 https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
git fetch --no-tags pdx86-platform-drivers-x86 review-hans
git checkout 76f7eba3e0a248af4cc4f302d95031fa2fb65fab
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

Note: the pdx86-platform-drivers-x86/review-hans HEAD fc3341b4b55f46ad0846a22ae149d94bac6ce40b builds fine.
It only hurts bisectability.

All errors (new ones prefixed by >>):

ld: drivers/platform/x86/system76_acpi.o: in function `system76_battery_exit':
>> drivers/platform/x86/system76_acpi.c:295: undefined reference to `battery_hook_unregister'
ld: drivers/platform/x86/system76_acpi.o: in function `system76_battery_init':
>> drivers/platform/x86/system76_acpi.c:286: undefined reference to `battery_hook_register'


vim +295 drivers/platform/x86/system76_acpi.c

279
280 static void system76_battery_init(void)
281 {
282 acpi_handle handle;
283
284 handle = ec_get_handle();
285 if (handle && acpi_has_method(handle, "GBCT"))
> 286 battery_hook_register(&system76_battery_hook);
287 }
288
289 static void system76_battery_exit(void)
290 {
291 acpi_handle handle;
292
293 handle = ec_get_handle();
294 if (handle && acpi_has_method(handle, "GBCT"))
> 295 battery_hook_unregister(&system76_battery_hook);
296 }
297

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-24 14:35    [W:0.038 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site