Skip to content
Commit 028ecebd authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

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: default avatarSam Ravnborg <sam@ravnborg.org>
Reported-by: default avatarJean Delvare <khali@linux-fr.org>
Tested-by: default avatarJean Delvare <khali@linux-fr.org>
parent 7d875a02
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