From: Alifer Moraes <alifer.wsdm@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/3] mx8mm_evk: spl: Staticize functions
Date: Tue, 14 Jan 2020 15:55:00 -0300 [thread overview]
Message-ID: <20200114185501.4993-2-alifer.wsdm@gmail.com> (raw)
In-Reply-To: <20200114185501.4993-1-alifer.wsdm@gmail.com>
Functions spl_dram_init() and power_init_board() are used only in
the scope of this file, so make them static to fix the following sparse
warnings:
board/freescale/imx8mm_evk/spl.c:40:6: warning: no previous prototype
for ‘spl_dram_init’ [-Wmissing-prototypes]
board/freescale/imx8mm_evk/spl.c:85:5: warning: no previous prototype
for ‘power_init_board’ [-Wmissing-prototypes]
Signed-off-by: Alifer Moraes <alifer.wsdm@gmail.com>
---
board/freescale/imx8mm_evk/spl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
index 2d08f9a563..e28f795676 100644
--- a/board/freescale/imx8mm_evk/spl.c
+++ b/board/freescale/imx8mm_evk/spl.c
@@ -37,7 +37,7 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
}
}
-void spl_dram_init(void)
+static void spl_dram_init(void)
{
ddr_init(&dram_timing);
}
@@ -82,7 +82,7 @@ int board_early_init_f(void)
return 0;
}
-int power_init_board(void)
+static int power_init_board(void)
{
struct udevice *dev;
int ret;
--
2.17.1
next prev parent reply other threads:[~2020-01-14 18:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-14 18:54 [PATCH 1/3] imx8m: clock_imx8mm: Staticize functions Alifer Moraes
2020-01-14 18:55 ` Alifer Moraes [this message]
2020-01-20 20:18 ` [PATCH 2/3] mx8mm_evk: spl: " sbabic at denx.de
2020-01-14 18:55 ` [PATCH 3/3] spl: Add prototype to function spl_board_boot_device() Alifer Moraes
2020-01-20 20:17 ` sbabic at denx.de
2020-01-20 20:18 ` [PATCH 1/3] imx8m: clock_imx8mm: Staticize functions sbabic at denx.de
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=20200114185501.4993-2-alifer.wsdm@gmail.com \
--to=alifer.wsdm@gmail.com \
--cc=u-boot@lists.denx.de \
/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