Re: drivers/platform/x86/dell-smbios-wmi.c:66: undefined reference to `wmidev_evaluate_method'

From: Randy Dunlap
Date: Fri Apr 27 2018 - 13:55:52 EST


On 04/27/2018 06:43 AM, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 0644f186fc9d77bb5bd198369e59fb28927a3692
> commit: 25d47027e1003546bfd8964b4423cb39bc2d53e9 platform/x86: dell-smbios: Link all dell-smbios-* modules together
> date: 7 weeks ago
> config: x86_64-randconfig-b0-04271930 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
> reproduce:
> git checkout 25d47027e1003546bfd8964b4423cb39bc2d53e9
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
> drivers/platform/x86/dell-smbios-wmi.o: In function `run_smbios_call':
>>> drivers/platform/x86/dell-smbios-wmi.c:66: undefined reference to `wmidev_evaluate_method'
> drivers/platform/x86/dell-smbios-wmi.o: In function `dell_smbios_wmi_probe':
>>> drivers/platform/x86/dell-smbios-wmi.c:157: undefined reference to `dell_wmi_get_descriptor_valid'
>>> drivers/platform/x86/dell-smbios-wmi.c:167: undefined reference to `dell_wmi_get_size'
>>> drivers/platform/x86/dell-smbios-wmi.c:171: undefined reference to `dell_wmi_get_hotfix'
>>> drivers/platform/x86/dell-smbios-wmi.c:182: undefined reference to `set_required_buffer_size'
> drivers/platform/x86/dell-smbios-wmi.o: In function `init_dell_smbios_wmi':
>>> drivers/platform/x86/dell-smbios-wmi.c:271: undefined reference to `__wmi_driver_register'
> drivers/platform/x86/dell-smbios-wmi.o: In function `exit_dell_smbios_wmi':
>>> drivers/platform/x86/dell-smbios-wmi.c:276: undefined reference to `wmi_driver_unregister'
>
>
> :::::: The code at line 66 was first introduced by commit
> :::::: 1a258e670434f404a4500b65ba1afea2c2b29bba platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver
>
> :::::: TO: Mario Limonciello <mario.limonciello@xxxxxxxx>
> :::::: CC: Darren Hart (VMware) <dvhart@xxxxxxxxxxxxx>

Hi,

To anyone contemplating this build error, there is already a fix for it from
Mario on 2018-04-20. (Seems odd that the patch does not show up on
https://patchwork.kernel.org/project/platform-driver-x86/list/ )

See lkml.kernel.org/r/1524246131-17621-1-git-send-email-mario.limonciello@xxxxxxxx


--
~Randy