lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 20 Sep 2019 11:23:43 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Kristian Klausen <kristian@...usen.dk>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: drivers/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@...el.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

Download attachment ".config.gz" of type "application/gzip" (26874 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ