xref: /linux/arch/microblaze/include/asm/asm-compat.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
219086765SJohn Williams #ifndef _ASM_MICROBLAZE_ASM_COMPAT_H
319086765SJohn Williams #define _ASM_MICROBLAZE_ASM_COMPAT_H
419086765SJohn Williams 
519086765SJohn Williams #include <asm/types.h>
619086765SJohn Williams 
719086765SJohn Williams #ifdef __ASSEMBLY__
819086765SJohn Williams #  define stringify_in_c(...)	__VA_ARGS__
919086765SJohn Williams #  define ASM_CONST(x)		x
1019086765SJohn Williams #else
1119086765SJohn Williams /* This version of stringify will deal with commas... */
1219086765SJohn Williams #  define __stringify_in_c(...)	#__VA_ARGS__
1319086765SJohn Williams #  define stringify_in_c(...)	__stringify_in_c(__VA_ARGS__) " "
1419086765SJohn Williams #  define __ASM_CONST(x)	x##UL
1519086765SJohn Williams #  define ASM_CONST(x)		__ASM_CONST(x)
1619086765SJohn Williams #endif
1719086765SJohn Williams 
1819086765SJohn Williams #endif /* _ASM_MICROBLAZE_ASM_COMPAT_H */
19