summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/asm-const.h
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2020-06-29 20:48:09 +0200
committerHeiko Carstens <hca@linux.ibm.com>2020-07-20 10:55:45 +0200
commit88aa8939c96781089e5ace3492d818074c5c6fe9 (patch)
tree14871ef632e444b996a9087906f844f74b80e016 /arch/s390/include/asm/asm-const.h
parent771cf196cc92a6078656548bbc073aa932c053ab (diff)
s390/kernel: unify EX_TABLE* implementations
Replace three implementations with one using using __stringify_in_c macro conveniently "borrowed" from powerpc and microblaze. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/asm-const.h')
-rw-r--r--arch/s390/include/asm/asm-const.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/s390/include/asm/asm-const.h b/arch/s390/include/asm/asm-const.h
new file mode 100644
index 000000000000..11f615eb0066
--- /dev/null
+++ b/arch/s390/include/asm/asm-const.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_S390_ASM_CONST_H
+#define _ASM_S390_ASM_CONST_H
+
+#ifdef __ASSEMBLY__
+# define stringify_in_c(...) __VA_ARGS__
+#else
+/* This version of stringify will deal with commas... */
+# define __stringify_in_c(...) #__VA_ARGS__
+# define stringify_in_c(...) __stringify_in_c(__VA_ARGS__) " "
+#endif
+#endif /* _ASM_S390_ASM_CONST_H */