Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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:

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

Remove the stale whitelist.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

-6
-6
scripts/mod/modpost.c
··· 1006 1006 "*_console"))) 1007 1007 return 0; 1008 1008 1009 - /* symbols in data sections that may refer to meminit sections */ 1010 - if (match(fromsec, PATTERNS(DATA_SECTIONS)) && 1011 - match(tosec, PATTERNS(ALL_XXXINIT_SECTIONS)) && 1012 - match(fromsym, PATTERNS("*driver"))) 1013 - return 0; 1014 - 1015 1009 /* 1016 1010 * symbols in data sections must not refer to .exit.*, but there are 1017 1011 * quite a few offenders, so hide these unless for W=1 builds until