From: Sascha Hauer <s.hauer@pengutronix.de>
To: "open list:BAREBOX" <barebox@lists.infradead.org>
Subject: [PATCH 1/3] ratp: Drop wrong alignment annotation
Date: Mon, 07 Apr 2025 09:29:53 +0200 [thread overview]
Message-ID: <20250407-ratp-fixes-v1-1-4c2501a83bca@pengutronix.de> (raw)
In-Reply-To: <20250407-ratp-fixes-v1-0-4c2501a83bca@pengutronix.de>
When ratp command handling was introduced in ff612b866f301 ("ratp:
implement generic command support") we had an explicit 64bit alignment
for the ratp command array in sandbox. This was removed in 52e5c35671
("X86: lds: remove unnecessary alignments"). With this it can happen
that the ratp command section starts at a non 64bit aligned address, but
the first command in that section will be placed at the first 64bit
boundary. __barebox_ratp_cmd_start will no longer point to the actual
command then and the array iteration fails.
Just drop the wrong alignment annotation.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
include/ratp_bb.h | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/include/ratp_bb.h b/include/ratp_bb.h
index 418be6fe7b..c6c7c4bc23 100644
--- a/include/ratp_bb.h
+++ b/include/ratp_bb.h
@@ -57,12 +57,7 @@ struct ratp_command {
int req_len,
struct ratp_bb **rsp,
int *rsp_len);
-}
-#ifdef __x86_64__
-/* This is required because the linker will put symbols on a 64 bit alignment */
-__attribute__((aligned(64)))
-#endif
-;
+};
#define BAREBOX_RATP_CMD_START(_name) \
extern const struct ratp_command __barebox_ratp_cmd_##_name; \
--
2.39.5
next prev parent reply other threads:[~2025-04-07 7:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 7:29 [PATCH 0/3] ratp: fixes Sascha Hauer
2025-04-07 7:29 ` Sascha Hauer [this message]
2025-04-07 7:59 ` [PATCH 1/3] ratp: Drop wrong alignment annotation Ahmad Fatoum
2025-04-07 13:10 ` Sascha Hauer
2025-04-07 7:29 ` [PATCH 2/3] ratp: do not export ratp command list Sascha Hauer
2025-04-07 7:29 ` [PATCH 3/3] ratp: make ratp commands const Sascha Hauer
2025-04-07 13:09 ` [PATCH 0/3] ratp: fixes Sascha Hauer
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=20250407-ratp-fixes-v1-1-4c2501a83bca@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.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