xref: /linux/arch/microblaze/include/asm/asm-compat.h (revision 6fdcba32711044c35c0e1b094cbd8f3f0b4472c9)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_MICROBLAZE_ASM_COMPAT_H
3 #define _ASM_MICROBLAZE_ASM_COMPAT_H
4 
5 #include <asm/types.h>
6 
7 #ifdef __ASSEMBLY__
8 #  define stringify_in_c(...)	__VA_ARGS__
9 #  define ASM_CONST(x)		x
10 #else
11 /* This version of stringify will deal with commas... */
12 #  define __stringify_in_c(...)	#__VA_ARGS__
13 #  define stringify_in_c(...)	__stringify_in_c(__VA_ARGS__) " "
14 #  define __ASM_CONST(x)	x##UL
15 #  define ASM_CONST(x)		__ASM_CONST(x)
16 #endif
17 
18 #endif /* _ASM_MICROBLAZE_ASM_COMPAT_H */
19