[PATCH] common: deep-probe: make __barebox_deep_probe_{start,end} of array type

Jules Maselbas jmaselbas at zdiv.net
Fri Mar 14 07:32:54 PDT 2025


Signed-off-by: Jules Maselbas <jmaselbas at 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




More information about the barebox mailing list