Skip to content

Commit

Permalink
powerpc: Use __REF macro instead of old .text.init.refok.
Browse files Browse the repository at this point in the history
The section .text.init.refok is deprecated and __REF (.ref.text)
should be used in assembly files instead.  This patch cleans up a few
uses of .text.init.refok in the powerpc architecture.

Signed-off-by: Tim Abbott <tabbott@mit.edu>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Tim Abbott authored and Linus Torvalds committed Apr 28, 2009
1 parent edada39 commit 9203fc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/powerpc/include/asm/ppc_asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#ifndef _ASM_POWERPC_PPC_ASM_H
#define _ASM_POWERPC_PPC_ASM_H

#include <linux/init.h>
#include <linux/stringify.h>
#include <asm/asm-compat.h>
#include <asm/processor.h>
Expand Down Expand Up @@ -189,7 +190,7 @@ name: \
GLUE(.,name):

#define _INIT_GLOBAL(name) \
.section ".text.init.refok"; \
__REF; \
.align 2 ; \
.globl name; \
.globl GLUE(.,name); \
Expand Down Expand Up @@ -229,7 +230,7 @@ name: \
GLUE(.,name):

#define _INIT_STATIC(name) \
.section ".text.init.refok"; \
__REF; \
.align 2 ; \
.section ".opd","aw"; \
name: \
Expand Down

0 comments on commit 9203fc9

Please sign in to comment.