[PATCH] linux/export.h: remove unneeded .balign directive

From: Masahiro Yamada
Date: Wed Jan 03 2024 - 08:55:24 EST


The .export_symbol section is discarded by the linker script, hence
no alignment is needed. Simplify the code.

Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
---

include/linux/export.h | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/include/linux/export.h b/include/linux/export.h
index 0bbd02fd351d..dff230bb5aca 100644
--- a/include/linux/export.h
+++ b/include/linux/export.h
@@ -15,13 +15,9 @@
*/

#ifdef CONFIG_64BIT
-#define __EXPORT_SYMBOL_REF(sym) \
- .balign 8 ASM_NL \
- .quad sym
+#define __EXPORT_SYMBOL_PTR .quad
#else
-#define __EXPORT_SYMBOL_REF(sym) \
- .balign 4 ASM_NL \
- .long sym
+#define __EXPORT_SYMBOL_PTR .long
#endif

#define ___EXPORT_SYMBOL(sym, license, ns) \
@@ -29,7 +25,7 @@
__export_symbol_##sym: ASM_NL \
.asciz license ASM_NL \
.asciz ns ASM_NL \
- __EXPORT_SYMBOL_REF(sym) ASM_NL \
+ __EXPORT_SYMBOL_PTR sym ASM_NL \
.previous

#if defined(__DISABLE_EXPORTS)
--
2.40.1