[PATCH v3 1/9] cmd_date: make mk_date() static
Alexander Feilke
Alexander.Feilke at ew.tq-group.com
Fri May 22 17:39:21 CEST 2026
From: Alexander Feilke <alexander.feilke at ew.tq-group.com>
Use static as this function is not used externally.
Signed-off-by: Alexander Feilke <alexander.feilke at ew.tq-group.com>
---
cmd/date.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/date.c b/cmd/date.c
index d047872289c..f7ecdac7dd3 100644
--- a/cmd/date.c
+++ b/cmd/date.c
@@ -16,7 +16,7 @@ static const char * const weekdays[] = {
"Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur",
};
-int mk_date (const char *, struct rtc_time *);
+static int mk_date(const char *, struct rtc_time *);
static struct rtc_time default_tm = { 0, 0, 0, 1, 1, 2000, 6, 0, 0 };
@@ -117,7 +117,7 @@ static int cnvrt2 (const char *str, int *valp)
* Some basic checking for valid values is done, but this will not catch
* all possible error conditions.
*/
-int mk_date (const char *datestr, struct rtc_time *tmp)
+static int mk_date(const char *datestr, struct rtc_time *tmp)
{
int len, val;
char *ptr;
--
2.34.1
More information about the U-Boot
mailing list