From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH v2 2/4] include: common.h: move out get_ram_size
Date: Mon, 25 Nov 2024 16:13:51 +0100 [thread overview]
Message-ID: <20241125151353.428428-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20241125151353.428428-1-a.fatoum@pengutronix.de>
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@pengutronix.de>
---
v1 -> v2:
- no change
---
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 45e95f187462..0341f303470b 100644
--- a/include/barebox.h
+++ b/include/barebox.h
@@ -43,4 +43,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
next prev parent reply other threads:[~2024-11-25 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 15:13 [PATCH v2 1/4] commands: reginfo: make command mpc5xxx-specific Ahmad Fatoum
2024-11-25 15:13 ` Ahmad Fatoum [this message]
2024-11-25 15:13 ` [PATCH v2 3/4] include: align: reword STACK_ALIGN_ARRAY macro parameter for clarity Ahmad Fatoum
2024-11-25 15:13 ` [PATCH v2 4/4] ARM: bcm283x: remove common.h include in mbox.h Ahmad Fatoum
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=20241125151353.428428-2-a.fatoum@pengutronix.de \
--to=a.fatoum@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