mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
modpost: Make verbose mismatches errors
When compiling with CONFIG_DEBUG_SECTION_MISMATCHES, compilation will still currently succeed even though there is still a mismatch. Fix this by putting the check in a different place. Change-Id: I631203803ab9d78e9d57afecbe602aaf37d05dc6 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> (cherry picked from commit 54cb83c041bc65d3501e4f5cd94d9cc7f68b950f)
This commit is contained in:
parent
1bf41f8a12
commit
890bcc7532
1 changed files with 8 additions and 7 deletions
|
@ -2213,14 +2213,15 @@ int main(int argc, char **argv)
|
|||
"'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n",
|
||||
sec_mismatch_count);
|
||||
|
||||
if (section_error_on_mismatch) {
|
||||
}
|
||||
|
||||
if (sec_mismatch_count && section_error_on_mismatch) {
|
||||
err |= 1;
|
||||
printf(
|
||||
"To build the kernel despite the mismatches, "
|
||||
"build with:\n'make CONFIG_NO_ERROR_ON_MISMATCH=y'\n"
|
||||
"(NOTE: This is not recommended)\n");
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue