Thread (3 messages) 3 messages, 2 authors, 2023-09-30

Re: [PATCH v2] modpost: Don't let "driver"s reference .exit.*

flat view

From: Masahiro Yamada <masahiroy@kernel.org>
Date: 2023-09-30 20:34:43
Also in: linux-kbuild, lkml

On Sun, Oct 1, 2023 at 1:52 AM Uwe Kleine-König
[off-list ref] wrote:
Drivers must not reference functions marked with __exit as these likely
are not available when the code is built-in.

There are few creative offenders uncovered for example in ARCH=amd64
allmodconfig builds. So only trigger the section mismatch warning for
W=1 builds.

The dual rule that drivers must not reference .init.* is implemented
since commit 0db252452378 ("modpost: don't allow *driver to reference
.init.*") which however missed that .exit.* should be handled in the
same way.

Thanks to Masahiro Yamada and Arnd Bergmann who gave valuable hints to
find this improvement.

Signed-off-by: Uwe Kleine-König <redacted>

Thanks.

If there is no objection from anybody, I will apply this
to my fixes branch and send a pull request.


Then, I hope you (or somebody) will volunteer to fix broken drivers.





--
Best Regards
Masahiro Yamada

_______________________________________________
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