mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
modpost: set have_vmlinux in new_module()
Set have_vmlinux flag in a single place. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
0b19d54cae
commit
858b937d28
1 changed files with 3 additions and 5 deletions
|
@ -192,6 +192,9 @@ static struct module *new_module(const char *modname)
|
||||||
mod->next = modules;
|
mod->next = modules;
|
||||||
modules = mod;
|
modules = mod;
|
||||||
|
|
||||||
|
if (mod->is_vmlinux)
|
||||||
|
have_vmlinux = 1;
|
||||||
|
|
||||||
return mod;
|
return mod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2012,9 +2015,6 @@ static void read_symbols(const char *modname)
|
||||||
|
|
||||||
mod = new_module(modname);
|
mod = new_module(modname);
|
||||||
|
|
||||||
if (mod->is_vmlinux)
|
|
||||||
have_vmlinux = 1;
|
|
||||||
|
|
||||||
if (!mod->is_vmlinux) {
|
if (!mod->is_vmlinux) {
|
||||||
license = get_modinfo(&info, "license");
|
license = get_modinfo(&info, "license");
|
||||||
if (!license)
|
if (!license)
|
||||||
|
@ -2470,8 +2470,6 @@ static void read_dump(const char *fname)
|
||||||
mod = find_module(modname);
|
mod = find_module(modname);
|
||||||
if (!mod) {
|
if (!mod) {
|
||||||
mod = new_module(modname);
|
mod = new_module(modname);
|
||||||
if (mod->is_vmlinux)
|
|
||||||
have_vmlinux = 1;
|
|
||||||
mod->from_dump = 1;
|
mod->from_dump = 1;
|
||||||
}
|
}
|
||||||
s = sym_add_exported(symname, mod, export_no(export));
|
s = sym_add_exported(symname, mod, export_no(export));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue