]> git.hungrycats.org Git - linux/commit
modpost: disallow the combination of EXPORT_SYMBOL and __meminit*
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 22 Oct 2023 17:06:10 +0000 (02:06 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:32:58 +0000 (10:32 +0100)
commitdb081efa9b8017b683230702a83e4b644a739a4d
tree18aae72f909fbee07341d35af28eb06cb999ccc6
parenta169a023e064be3f6662aeac4c623ea08e5b6b56
modpost: disallow the combination of EXPORT_SYMBOL and __meminit*

[ Upstream commit a3df1526da480c089c20868b7f4d486b9f266001 ]

Theoretically, we could export conditionally-discarded code sections,
such as .meminit*, if all the users can become modular under a certain
condition. However, that would be difficult to control and such a tricky
case has never occurred.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Stable-dep-of: bb43a59944f4 ("Rename .data.unlikely to .data..unlikely")
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/mod/modpost.c