[PATCH 10/12] include: common.h: move out get_ram_size
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Oct 14 04:50:38 PDT 2024
The function get_ram_size() is the last function remaining that's only
defined in common.h. Let's move it to barebox.h instead, so users don't
need to include everything else that's in common.h at the same time.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/barebox.h | 2 ++
include/common.h | 3 ---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/barebox.h b/include/barebox.h
index 741463bc1cf9..09f8c78abbeb 100644
--- a/include/barebox.h
+++ b/include/barebox.h
@@ -32,4 +32,6 @@ enum autoboot_state do_autoboot_countdown(void);
void __noreturn start_barebox(void);
void shutdown_barebox(void);
+long get_ram_size(volatile long *base, long size);
+
#endif
diff --git a/include/common.h b/include/common.h
index 1f00baf8067a..16a08fe293af 100644
--- a/include/common.h
+++ b/include/common.h
@@ -23,7 +23,4 @@
#include <linux/printk.h>
#include <barebox-info.h>
-/* common/memsize.c */
-long get_ram_size (volatile long *, long);
-
#endif /* __COMMON_H_ */
--
2.39.5
More information about the barebox
mailing list