summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/asm.h
diff options
context:
space:
mode:
authorSathvika Vasireddy <sv@linux.ibm.com>2022-11-14 23:27:53 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2022-11-18 19:00:16 +1100
commite52ec98c5ab18c0710ea22bf52f45e60a725adaf (patch)
tree81935f99f2f1d1fec3c3c2ceb96e65ce15273e6c /arch/powerpc/include/asm/asm.h
parent4ca993d498987332ceeedee5380101b84accaf35 (diff)
downloadlinux-stable-e52ec98c5ab18c0710ea22bf52f45e60a725adaf.tar.gz
linux-stable-e52ec98c5ab18c0710ea22bf52f45e60a725adaf.tar.bz2
linux-stable-e52ec98c5ab18c0710ea22bf52f45e60a725adaf.zip
objtool/powerpc: Enable objtool to be built on ppc
This patch adds [stub] implementations for required functions, inorder to enable objtool build on powerpc. [Christophe Leroy: powerpc: Add missing asm/asm.h for objtool, Use local variables for type and imm in arch_decode_instruction(), Adapt len for prefixed instructions.] Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221114175754.1131267-16-sv@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/asm.h')
-rw-r--r--arch/powerpc/include/asm/asm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/asm.h b/arch/powerpc/include/asm/asm.h
new file mode 100644
index 000000000000..86f46b604e9a
--- /dev/null
+++ b/arch/powerpc/include/asm/asm.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_POWERPC_ASM_H
+#define _ASM_POWERPC_ASM_H
+
+#define _ASM_PTR " .long "
+
+#endif /* _ASM_POWERPC_ASM_H */