diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-05-03 16:17:37 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-05-04 07:05:06 -0400 |
commit | 028ecebdd83cc4a7f8c7e96e28a5537d2ac98dae (patch) | |
tree | f14dce375101e368575d91042f8a648762998b50 /scripts | |
parent | 7d875a02864a35532543897195dfea2235815df8 (diff) |
kbuild, modpost: fix "unexpected non-allocatable" warning with SUSE gcc
Jean reported that he saw one warning for each module like the one below:
WARNING: arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.o (.comment.SUSE.OPTs): unexpected non-allocatable section.
The warning appeared with the improved version of the
check of the flags in the sections.
That check already ignored sections named ".comment" - but SUSE store
additional info in the comment section and has named it in a SUSE
specific way. Therefore modpost failed to ignore the section.
The fix is to extend the pattern so we ignore all sections
that start with the name ".comment.".
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reported-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index a5c17db14ee5..268d4571664d 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -727,7 +727,7 @@ int match(const char *sym, const char * const pat[]) | |||
727 | 727 | ||
728 | /* sections that we do not want to do full section mismatch check on */ | 728 | /* sections that we do not want to do full section mismatch check on */ |
729 | static const char *section_white_list[] = | 729 | static const char *section_white_list[] = |
730 | { ".comment", ".debug*", ".stab*", ".note*", ".got*", ".toc*", NULL }; | 730 | { ".comment*", ".debug*", ".stab*", ".note*", ".got*", ".toc*", NULL }; |
731 | 731 | ||
732 | /* | 732 | /* |
733 | * This is used to find sections missing the SHF_ALLOC flag. | 733 | * This is used to find sections missing the SHF_ALLOC flag. |