Commit 7c0ac495 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Sam Ravnborg

kbuild/modpost: Use warn() for announcing section mismatches

modpost: Use warn() for announcing section mismatches, for easy grepping for
warnings in build logs.

Also change an existing call from fprintf() to warn() while we're at it.
Signed-off-by: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent ff739b61
...@@ -1136,10 +1136,10 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch, ...@@ -1136,10 +1136,10 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
if (!sec_mismatch_verbose) if (!sec_mismatch_verbose)
return; return;
fprintf(stderr, "WARNING: %s(%s+0x%llx): Section mismatch in" warn("%s(%s+0x%llx): Section mismatch in reference from the %s %s%s "
" reference from the %s %s%s to the %s %s:%s%s\n", "to the %s %s:%s%s\n",
modname, fromsec, fromaddr, from, fromsym, from_p, modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec,
to, tosec, tosym, to_p); tosym, to_p);
switch (mismatch) { switch (mismatch) {
case TEXT_TO_INIT: case TEXT_TO_INIT:
...@@ -1945,10 +1945,10 @@ int main(int argc, char **argv) ...@@ -1945,10 +1945,10 @@ int main(int argc, char **argv)
if (dump_write) if (dump_write)
write_dump(dump_write); write_dump(dump_write);
if (sec_mismatch_count && !sec_mismatch_verbose) if (sec_mismatch_count && !sec_mismatch_verbose)
fprintf(stderr, "modpost: Found %d section mismatch(es).\n" warn("modpost: Found %d section mismatch(es).\n"
"To see full details build your kernel with:\n" "To see full details build your kernel with:\n"
"'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n", "'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n",
sec_mismatch_count); sec_mismatch_count);
return err; return err;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment