[POWERPC] iSeries: suppress build warning in lparmap.c
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2007 05:19:05 +0000 (15:19 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 9 May 2007 06:34:59 +0000 (16:34 +1000)
lparmap.c: Assembler messages:
lparmap.c:51: Warning: ignoring changed section attributes for .text

Idea from Segher Boessenkool.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/lparmap.c

index 584d1e3..af11285 100644 (file)
@@ -10,7 +10,8 @@
 #include <asm/pgtable.h>
 #include <asm/iseries/lpar_map.h>
 
-const struct LparMap __attribute__((__section__(".text"))) xLparMap = {
+/* The # is to stop gcc trying to make .text nonexecutable */
+const struct LparMap __attribute__((__section__(".text #"))) xLparMap = {
        .xNumberEsids = HvEsidsToMap,
        .xNumberRanges = HvRangesToMap,
        .xSegmentTableOffs = STAB0_PAGE,