Skip to content

Commit 467b82d

Browse files
committed
modpost: remove -s option
The -s option was added by commit 8d8d828 ("kbuild: do not do section mismatch checks on vmlinux in 2nd pass"). Now that the second pass does not parse vmlinux, this option is unneeded. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 7589357 commit 467b82d

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

‎scripts/Makefile.modpost‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ __modpost: vmlinux.symvers
6262

6363
else
6464

65-
MODPOST += -s \
65+
MODPOST += \
6666
$(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS))
6767

6868
ifeq ($(KBUILD_EXTMOD),)

‎scripts/mod/modpost.c‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ static int have_vmlinux = 0;
3030
static int all_versions = 0;
3131
/* If we are modposting external module set to 1 */
3232
static int external_module = 0;
33-
/* Warn about section mismatch in vmlinux if set to 1 */
34-
static int vmlinux_section_warnings = 1;
3533
/* Only warn about unresolved symbols */
3634
static int warn_unresolved = 0;
3735
/* How a symbol is exported */
@@ -2078,8 +2076,7 @@ static void read_symbols(const char *modname)
20782076
}
20792077
}
20802078

2081-
if (!is_vmlinux(modname) || vmlinux_section_warnings)
2082-
check_sec_ref(mod, modname, &info);
2079+
check_sec_ref(mod, modname, &info);
20832080

20842081
if (!is_vmlinux(modname)) {
20852082
version = get_modinfo(&info, "version");
@@ -2576,7 +2573,7 @@ int main(int argc, char **argv)
25762573
struct dump_list *dump_read_start = NULL;
25772574
struct dump_list **dump_read_iter = &dump_read_start;
25782575

2579-
while ((opt = getopt(argc, argv, "ei:mnsT:o:awENd:")) != -1) {
2576+
while ((opt = getopt(argc, argv, "ei:mnT:o:awENd:")) != -1) {
25802577
switch (opt) {
25812578
case 'e':
25822579
external_module = 1;
@@ -2599,9 +2596,6 @@ int main(int argc, char **argv)
25992596
case 'a':
26002597
all_versions = 1;
26012598
break;
2602-
case 's':
2603-
vmlinux_section_warnings = 0;
2604-
break;
26052599
case 'T':
26062600
files_source = optarg;
26072601
break;

0 commit comments

Comments
 (0)