Skip to content
Snippets Groups Projects
Commit 50cccec1 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

modpost: disallow *driver to reference .meminit* sections


Drivers must not reference .meminit* sections, which are discarded
when CONFIG_MEMORY_HOTPLUG=n.

The reason for whitelisting "*driver" in the section mismatch check
was to allow drivers to reference symbols annotated as __devinit or
__devexit that existed in the past.

Those annotations were removed by the following commits:

 - 54b956b9 ("Remove __dev* markings from init.h")
 - 92e9e6d1 ("modpost.c: Stop checking __dev* section mismatches")

Remove the stale whitelist.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 6a4e59ee
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment