summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-08 19:56:05 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-11-16 14:25:19 +1100
commit9c8b39077b0a5b0990bb707fcd7b5913d7b322b8 (patch)
tree00542c15a00b92054716f4248aa88c63aac54878 /arch
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37 (diff)
downloadlinux-3.10-9c8b39077b0a5b0990bb707fcd7b5913d7b322b8.tar.gz
linux-3.10-9c8b39077b0a5b0990bb707fcd7b5913d7b322b8.tar.bz2
linux-3.10-9c8b39077b0a5b0990bb707fcd7b5913d7b322b8.zip
powerpc: Fix build breakage in jump_label.c
Should do what other architectures do and wrap all that code into the appropriate ifdef Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/jump_label.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/jump_label.c b/arch/powerpc/kernel/jump_label.c
index 368d158d665..a1ed8a8c7cb 100644
--- a/arch/powerpc/kernel/jump_label.c
+++ b/arch/powerpc/kernel/jump_label.c
@@ -11,6 +11,7 @@
#include <linux/jump_label.h>
#include <asm/code-patching.h>
+#ifdef HAVE_JUMP_LABEL
void arch_jump_label_transform(struct jump_entry *entry,
enum jump_label_type type)
{
@@ -21,3 +22,4 @@ void arch_jump_label_transform(struct jump_entry *entry,
else
patch_instruction(addr, PPC_INST_NOP);
}
+#endif