]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kbuild, modpost: fix "unexpected non-allocatable" warning with SUSE gcc
authorSam Ravnborg <sam@ravnborg.org>
Sun, 3 May 2009 20:17:37 +0000 (22:17 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 4 May 2009 11:05:06 +0000 (13:05 +0200)
commit028ecebdd83cc4a7f8c7e96e28a5537d2ac98dae
treef14dce375101e368575d91042f8a648762998b50
parent7d875a02864a35532543897195dfea2235815df8
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>
scripts/mod/modpost.c