Thread (8 messages) 8 messages, 5 authors, 2021-10-15

Re: [PATCH] acpi: arm64: fix section mismatch warning

From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2021-10-12 14:16:22
Also in: linux-acpi, lkml

On Tue, Oct 12, 2021 at 9:20 AM Arnd Bergmann [off-list ref] wrote:
On Tue, Oct 12, 2021 at 9:03 AM Hanjun Guo [off-list ref] wrote:
quoted
On 2021/9/27 22:19, Arnd Bergmann wrote:
quoted
From: Arnd Bergmann <arnd@arndb.de>

In a gcc-11 randconfig build I came across this warning:

WARNING: modpost: vmlinux.o(.text.unlikely+0x2c084): Section mismatch in reference from the function next_platform_timer() to the variable .init.data:acpi_gtdt_desc
The function next_platform_timer() references
the variable __initdata acpi_gtdt_desc.
This is often because next_platform_timer lacks a __initdata
annotation or the annotation of acpi_gtdt_desc is wrong.

This happens when next_platform_timer() fails to get inlined
despite the inline annotation. Adding '__init' solves the issue,
and it seems best to remove the 'inline' in the process seems
better anyway.
There was a patch to fix this issue as well [1],
but not merged yet.

[1]:
https://lore.kernel.org/linux-acpi/7f29a149-e005-f13f-2cc4-a9eb737107e1@huawei.com/T/ (local)
Right, either of those patches should be fine.

Rafael, can you pick one of them up?
I can, but arm54 ACPI changes go in via arm64 as a rule.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help