History

kbuild: print only total number of section mismatces found

We have too many section mismatches detected at the moment. So silence modpost and prevent the option from being set in a typical allyesconfig build. Tell the user how to see all the deteils in the summary message from modpost.

Sam Ravnborg committed 18 years ago

Commit e5f95c81 parent 9135f192 files · +8 −9Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/mod/modpost.c+7−8
@@ -1125,15 +1125,15 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch, · 1124 unmodified lines
11251125 to = to_is_func ? "function" : "variable";
11261126 to_p = to_is_func ? "()" : "";
11271127
1128+ sec_mismatch_count++;
1129+ if (!sec_mismatch_verbose)
1130+ return;
1131+
11281132 fprintf(stderr, "WARNING: %s(%s+0x%llx): Section mismatch in"
11291133 " reference from the %s %s%s to the %s %s:%s%s\n",
11301134 modname, fromsec, fromaddr, from, fromsym, from_p,
11311135 to, tosec, tosym, to_p);
11321136
1133− sec_mismatch_count++;
1134− if (!sec_mismatch_verbose)
1135− return;
1136−
11371137 switch (mismatch) {
11381138 case TEXT_TO_INIT:
11391139 fprintf(stderr,
@@ -1939,10 +1939,9 @@ int main(int argc, char **argv) · 799 unmodified lines
19391939 write_dump(dump_write);
19401940 if (sec_mismatch_count && !sec_mismatch_verbose)
19411941 fprintf(stderr, "modpost: Found %d section mismatch(es).\n"
1942− "To see additional details select \"Enable full "
1943− "Section mismatch analysis\"\n"
1944− "in the Kernel Hacking menu "
1945− "(CONFIG_SECTION_MISMATCH).\n", sec_mismatch_count);
1942+ "To see full details build your kernel with:\n"
1943+ "'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n",
1944+ sec_mismatch_count);
19461945
19471946 return err;
19481947 }