Re: include: linux: slab: kmalloc_trace undefined when compiling drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 11/12/22 16:43, Ian Cowan wrote:
> On Sat, Nov 12, 2022 at 04:34:18PM -0800, Randy Dunlap wrote:
>>
>>
>> On 11/12/22 13:59, Ian Cowan wrote:
>>> On Sat, Nov 12, 2022 at 09:21:34AM -0800, Randy Dunlap wrote:
>>>> Hi--
>>>>
>>>> On 11/12/22 08:37, Ian Cowan wrote:
>>>>> When compiling drivers (speficially drivers/pci/hotplug), I am receiving
>>>>> the following modpost error for both `kmalloc_trace` and
>>>>> `kmalloc_node_trace` on the staging/staging-next branch:
>>>>>
>>
>> Ian, what do you mean by "on the staging/staging-next branch"?
>>
>> What kernel version are you trying to build?
>>
>> The .config that you sent is for v6.1.0-rc1.
> 
> I am building from the staging repository (gregkh/staging) and my
> working branch when building is staging-next. So I am trying to build
> from staging and not a particular version. I have also run `make modules_prepare`
> and updated the .config per that script. However, when I do build
> v6.1.0-rc1 from the main repository (torvalds/linux), I run into the same problem.

Have you built the entire kernel already and then you are trying to build
only drivers/pci/hotplug?

If I build *only* drivers/pci/hotplug, I do get undefined symbols:

WARNING: modpost: "strcmp" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "kfree" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "pci_slots_kset" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "acpiphp_unregister_attention" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "acpi_remove_notify_handler" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "sysfs_remove_bin_file" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "acpi_evaluate_object" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "__kmalloc" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "memcpy" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: "acpi_walk_namespace" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined!
WARNING: modpost: suppressed 14 unresolved symbol warnings because there were too many)

but that's understandable since the object files that would contain those symbols
have not been built yet.

-- 
~Randy




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux