Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1f25e66 authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

kbuild: fix so modpost can now check any .o file



It is very convinient to say:
scripts/mod/modpost mm/built-in.o

to check if any section mismatch errors occured
in mm/ (as an example).
Fix it so this is possible again.

Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent fa220d89
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1299,7 +1299,8 @@ static void read_symbols(char *modname)
		handle_modversions(mod, &info, sym, symname);
		handle_modversions(mod, &info, sym, symname);
		handle_moddevtable(mod, &info, sym, symname);
		handle_moddevtable(mod, &info, sym, symname);
	}
	}
	if (is_vmlinux(modname) && vmlinux_section_warnings) {
	if (!is_vmlinux(modname) ||
	     (is_vmlinux(modname) && vmlinux_section_warnings)) {
		check_sec_ref(mod, modname, &info, init_section, init_section_ref_ok);
		check_sec_ref(mod, modname, &info, init_section, init_section_ref_ok);
		check_sec_ref(mod, modname, &info, exit_section, exit_section_ref_ok);
		check_sec_ref(mod, modname, &info, exit_section, exit_section_ref_ok);
	}
	}