From: Jules Maselbas <jmaselbas@zdiv.net>
To: barebox@lists.infradead.org
Cc: Jules Maselbas <jmaselbas@zdiv.net>
Subject: [PATCH] common: deep-probe: make __barebox_deep_probe_{start,end} of array type
Date: Fri, 14 Mar 2025 15:32:54 +0100 [thread overview]
Message-ID: <20250314143254.21753-1-jmaselbas@zdiv.net> (raw)
Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net>
---
common/deep-probe.c | 4 ++--
include/deep-probe.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/common/deep-probe.c b/common/deep-probe.c
index b270a10f7f..69beaf2d80 100644
--- a/common/deep-probe.c
+++ b/common/deep-probe.c
@@ -22,8 +22,8 @@ bool deep_probe_is_supported(void)
return boardstate;
/* determine boardstate */
- for (board = &__barebox_deep_probe_start;
- board != &__barebox_deep_probe_end; board++) {
+ for (board = __barebox_deep_probe_start;
+ board != __barebox_deep_probe_end; board++) {
const struct of_device_id *matches = board->device_id;
for (; matches->compatible; matches++) {
diff --git a/include/deep-probe.h b/include/deep-probe.h
index e3770fcf0d..9ba9d09ec3 100644
--- a/include/deep-probe.h
+++ b/include/deep-probe.h
@@ -19,8 +19,8 @@ static inline bool deep_probe_is_supported(void)
}
#endif
-extern struct deep_probe_entry __barebox_deep_probe_start;
-extern struct deep_probe_entry __barebox_deep_probe_end;
+extern struct deep_probe_entry __barebox_deep_probe_start[];
+extern struct deep_probe_entry __barebox_deep_probe_end[];
#define __BAREBOX_DEEP_PROBE_ENABLE(_entry,_device_id) \
static const struct deep_probe_entry _entry \
--
2.48.1
reply other threads:[~2025-03-14 14:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20250314143254.21753-1-jmaselbas@zdiv.net \
--to=jmaselbas@zdiv.net \
--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