]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
modpost: drop '*_probe' from section check whitelist
authorJohan Hovold <johan@kernel.org>
Mon, 20 Oct 2025 09:16:13 +0000 (11:16 +0200)
committerNathan Chancellor <nathan@kernel.org>
Tue, 16 Dec 2025 13:12:29 +0000 (22:12 +0900)
commita4df2071f1a2bb5b003eb179e1a51625d26b04d5
treea19ea6e19945e9bd906483a014172409571b4906
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
modpost: drop '*_probe' from section check whitelist

Several symbol patterns used to be whitelisted to allow drivers to refer
to functions annotated with __devinit and __devexit, which have since
been removed.

Commit e1dc1bfe5b27 ("modpost: remove more symbol patterns from the
section check whitelist") removed most of these patterns but left
'*_probe' after a reported warning in an irqchip driver.

Turns out that was indeed an incorrect reference which has now been
fixed by commit 9b685058ca93 ("irqchip/qcom-irq-combiner: Fix section
mismatch").

A recently added clocksource driver also relies on this suffix to
suppress another valid warning, and that is being fixed separately. [1]

Note that drivers with valid reasons for suppressing the warnings can
use the __ref macros.

Link: https://lore.kernel.org/lkml/20251017054943.7195-1-johan@kernel.org/
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20251020091613.22562-1-johan@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/mod/modpost.c