Commit 02b7da37f7acd49277dea1481dc0c5c246c09732

Authored by Tim Abbott
Committed by Sam Ravnborg
1 parent d200c922bc

Use macros for .bss.page_aligned section.

This patch changes the remaining direct references to
.bss.page_aligned in C and assembly code to use the macros in
include/linux/linkage.h.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

Showing 4 changed files with 5 additions and 7 deletions Side-by-side Diff

arch/sh/kernel/irq.c
... ... @@ -165,11 +165,9 @@
165 165 }
166 166  
167 167 #ifdef CONFIG_IRQSTACKS
168   -static char softirq_stack[NR_CPUS * THREAD_SIZE]
169   - __attribute__((__section__(".bss.page_aligned")));
  168 +static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
170 169  
171   -static char hardirq_stack[NR_CPUS * THREAD_SIZE]
172   - __attribute__((__section__(".bss.page_aligned")));
  170 +static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
173 171  
174 172 /*
175 173 * allocate per-cpu stacks for hardirq and for softirq processing
arch/x86/kernel/head_32.S
... ... @@ -608,7 +608,7 @@
608 608 /*
609 609 * BSS section
610 610 */
611   -.section ".bss.page_aligned","wa"
  611 +__PAGE_ALIGNED_BSS
612 612 .align PAGE_SIZE_asm
613 613 #ifdef CONFIG_X86_PAE
614 614 swapper_pg_pmd:
arch/x86/kernel/head_64.S
... ... @@ -418,7 +418,7 @@
418 418 ENTRY(idt_table)
419 419 .skip IDT_ENTRIES * 16
420 420  
421   - .section .bss.page_aligned, "aw", @nobits
  421 + __PAGE_ALIGNED_BSS
422 422 .align PAGE_SIZE
423 423 ENTRY(empty_zero_page)
424 424 .skip PAGE_SIZE
arch/xtensa/kernel/head.S
... ... @@ -235,7 +235,7 @@
235 235 * BSS section
236 236 */
237 237  
238   -.section ".bss.page_aligned", "w"
  238 +__PAGE_ALIGNED_BSS
239 239 #ifdef CONFIG_MMU
240 240 ENTRY(swapper_pg_dir)
241 241 .fill PAGE_SIZE, 1, 0