mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-03 04:42:13 +00:00
modpost: merge module iterations
Probably, this is just a matter of the order of error/warning messages. Merge the two for-loops. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
d2665ca8e3
commit
c6826ad8a4
1 changed files with 1 additions and 6 deletions
|
@ -2496,12 +2496,6 @@ int main(int argc, char **argv)
|
||||||
if (files_source)
|
if (files_source)
|
||||||
read_symbols_from_files(files_source);
|
read_symbols_from_files(files_source);
|
||||||
|
|
||||||
for (mod = modules; mod; mod = mod->next) {
|
|
||||||
if (mod->skip)
|
|
||||||
continue;
|
|
||||||
check_exports(mod);
|
|
||||||
}
|
|
||||||
|
|
||||||
err = 0;
|
err = 0;
|
||||||
|
|
||||||
for (mod = modules; mod; mod = mod->next) {
|
for (mod = modules; mod; mod = mod->next) {
|
||||||
|
@ -2513,6 +2507,7 @@ int main(int argc, char **argv)
|
||||||
buf.pos = 0;
|
buf.pos = 0;
|
||||||
|
|
||||||
err |= check_modname_len(mod);
|
err |= check_modname_len(mod);
|
||||||
|
check_exports(mod);
|
||||||
add_header(&buf, mod);
|
add_header(&buf, mod);
|
||||||
add_intree_flag(&buf, !external_module);
|
add_intree_flag(&buf, !external_module);
|
||||||
add_retpoline(&buf);
|
add_retpoline(&buf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue