tables.h: remove postfix _TEXT for .text sectioned code
The _TEXT postfix is removed to since SECTION_INIT also
implicates .init.text -- stick the convention to default
to .text unless otherwise noted.
References for this decision:
http://lkml.kernel.org/r/20160224005458.GK25240@wotan.suse.de
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
diff --git a/include/linux/tables.h b/include/linux/tables.h
index 4f76d65..f3db2c8 100644
--- a/include/linux/tables.h
+++ b/include/linux/tables.h
@@ -39,7 +39,7 @@
__aligned__(LINKTABLE_ALIGNMENT(name)), \
section(SECTION_TBL(SECTION_DATA, name, level))))
-#define LINKTABLE_TEXT_WEAK(name, level) \
+#define LINKTABLE_WEAK(name, level) \
const __typeof__(name[0]) \
__attribute__((used, \
weak, \
@@ -68,7 +68,7 @@
__aligned__(LINKTABLE_ALIGNMENT(name)), \
section(SECTION_TBL(SECTION_INIT_DATA, name, level))))
-#define LINKTABLE_TEXT(name, level) \
+#define LINKTABLE(name, level) \
const __typeof__(name[0]) \
__attribute__((used, \
__aligned__(LINKTABLE_ALIGNMENT(name)), \
@@ -96,7 +96,7 @@
__aligned__(LINKTABLE_ALIGNMENT(name)), \
section(SECTION_TBL(SECTION_INIT_DATA, name, level))))
-#define DECLARE_LINKTABLE_TEXT(type, name) \
+#define DECLARE_LINKTABLE(type, name) \
extern const type name[], name##__end[];
#define DECLARE_LINKTABLE_DATA(type, name) \
@@ -112,11 +112,11 @@
extern type name[], name##__end[];
-#define DEFINE_LINKTABLE_TEXT(type, name) \
- DECLARE_LINKTABLE_TEXT(type, name); \
- LINKTABLE_TEXT_WEAK(name, ) VMLINUX_SYMBOL(name)[0] = {}; \
+#define DEFINE_LINKTABLE(type, name) \
+ DECLARE_LINKTABLE(type, name); \
+ LINKTABLE_WEAK(name, ) VMLINUX_SYMBOL(name)[0] = {}; \
LTO_REFERENCE_INITCALL(name); \
- LINKTABLE_TEXT(name, ~) VMLINUX_SYMBOL(name##__end)[0] = {};\
+ LINKTABLE(name, ~) VMLINUX_SYMBOL(name##__end)[0] = {}; \
LTO_REFERENCE_INITCALL(name##__end);
#define DEFINE_LINKTABLE_DATA(type, name) \