* [PATCH] common: deep-probe: make __barebox_deep_probe_{start,end} of array type
@ 2025-03-14 14:32 Jules Maselbas
0 siblings, 0 replies; only message in thread
From: Jules Maselbas @ 2025-03-14 14:32 UTC (permalink / raw)
To: barebox; +Cc: Jules Maselbas
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-14 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-14 14:32 [PATCH] common: deep-probe: make __barebox_deep_probe_{start,end} of array type Jules Maselbas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox