aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/asm-compat.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-07-05 16:24:57 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2018-07-30 22:48:16 +1000
commitec0c464cdbf38bf6ddabec8bfa595bd421cab203 (patch)
treeb9e8e5c9b489fff773b505294f8c25e1d4dfdacd /arch/powerpc/include/asm/asm-compat.h
parentpowerpc/405: move PPC405_ERR77 in asm-405.h (diff)
downloadlinux-dev-ec0c464cdbf38bf6ddabec8bfa595bd421cab203.tar.xz
linux-dev-ec0c464cdbf38bf6ddabec8bfa595bd421cab203.zip
powerpc: move ASM_CONST and stringify_in_c() into asm-const.h
This patch moves ASM_CONST() and stringify_in_c() into dedicated asm-const.h, then cleans all related inclusions. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: asm-compat.h should include asm-const.h] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/asm-compat.h')
-rw-r--r--arch/powerpc/include/asm/asm-compat.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/powerpc/include/asm/asm-compat.h b/arch/powerpc/include/asm/asm-compat.h
index d2cf3593e987..19b70c5b5f18 100644
--- a/arch/powerpc/include/asm/asm-compat.h
+++ b/arch/powerpc/include/asm/asm-compat.h
@@ -1,21 +1,10 @@
#ifndef _ASM_POWERPC_ASM_COMPAT_H
#define _ASM_POWERPC_ASM_COMPAT_H
+#include <asm/asm-const.h>
#include <asm/types.h>
#include <asm/ppc-opcode.h>
-#ifdef __ASSEMBLY__
-# define stringify_in_c(...) __VA_ARGS__
-# define ASM_CONST(x) x
-#else
-/* This version of stringify will deal with commas... */
-# define __stringify_in_c(...) #__VA_ARGS__
-# define stringify_in_c(...) __stringify_in_c(__VA_ARGS__) " "
-# define __ASM_CONST(x) x##UL
-# define ASM_CONST(x) __ASM_CONST(x)
-#endif
-
-
#ifdef __powerpc64__
/* operations for longs and pointers */