projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
185e418
)
KVM: PPC: Restrict PPC_[L|ST]D macro to asm code
author
Alexander Graf
<agraf@suse.de>
Wed, 25 Apr 2012 11:48:54 +0000
(13:48 +0200)
committer
Alexander Graf
<agraf@suse.de>
Sun, 6 May 2012 14:19:08 +0000
(16:19 +0200)
We only want asm code macros to be accessible from asm code, so #ifdef it
depending on it.
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_asm.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/include/asm/kvm_asm.h
b/arch/powerpc/include/asm/kvm_asm.h
index 7d4018dd0e112114fb177c93a3f10a1fd09578dc..76fdcfef088972d1b564d8413c275e1d01261ced 100644
(file)
--- a/
arch/powerpc/include/asm/kvm_asm.h
+++ b/
arch/powerpc/include/asm/kvm_asm.h
@@
-20,6
+20,7
@@
#ifndef __POWERPC_KVM_ASM_H__
#define __POWERPC_KVM_ASM_H__
+#ifdef __ASSEMBLY__
#ifdef CONFIG_64BIT
#define PPC_STD(sreg, offset, areg) std sreg, (offset)(areg)
#define PPC_LD(treg, offset, areg) ld treg, (offset)(areg)
@@
-27,6
+28,7
@@
#define PPC_STD(sreg, offset, areg) stw sreg, (offset+4)(areg)
#define PPC_LD(treg, offset, areg) lwz treg, (offset+4)(areg)
#endif
+#endif
/* IVPR must be 64KiB-aligned. */
#define VCPU_SIZE_ORDER 4