From: Masahiro Yamada <masahiroy@kernel.org>
To: linux-kbuild@vger.kernel.org
Cc: Masahiro Yamada <masahiroy@kernel.org>, linux-kernel@vger.kernel.org
Subject: [PATCH] linux/export.h: remove unneeded .balign directive
Date: Wed, 3 Jan 2024 22:54:54 +0900 [thread overview]
Message-ID: <20240103135454.376021-1-masahiroy@kernel.org> (raw)
The .export_symbol section is discarded by the linker script, hence
no alignment is needed. Simplify the code.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
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
next reply other threads:[~2024-01-03 13:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-03 13:54 Masahiro Yamada [this message]
2024-01-03 16:04 ` Sedat Dilek
2024-01-04 14:16 ` Masahiro Yamada
2024-01-05 8:20 ` Sedat Dilek
2024-01-07 11:34 ` Masahiro Yamada
2024-01-10 23:11 ` Guenter Roeck
2024-01-13 7:12 ` Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240103135454.376021-1-masahiroy@kernel.org \
--to=masahiroy@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®