* [U-Boot] [PATCH] imx8mq_evk: Staticize when appropriate
@ 2019-05-18 16:18 Fabio Estevam
2019-05-20 1:41 ` Peng Fan
2019-06-11 8:44 ` sbabic at denx.de
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2019-05-18 16:18 UTC (permalink / raw)
To: u-boot
Staticize 'spl_dram_init' and 'i2c_pad_info1' to fix the
following sparse warnings:
board/freescale/imx8mq_evk/spl.c:30:6: warning: symbol 'spl_dram_init' was not declared. Should it be static?
board/freescale/imx8mq_evk/spl.c:41:22: warning: symbol 'i2c_pad_info1' was not declared. Should it be static?
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
board/freescale/imx8mq_evk/spl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c
index e6cbc34b0d..3c0ff0bb1b 100644
--- a/board/freescale/imx8mq_evk/spl.c
+++ b/board/freescale/imx8mq_evk/spl.c
@@ -27,7 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
extern struct dram_timing_info dram_timing_b0;
-void spl_dram_init(void)
+static void spl_dram_init(void)
{
/* ddr init */
if ((get_cpu_rev() & 0xfff) == CHIP_REV_2_1)
@@ -38,7 +38,7 @@ void spl_dram_init(void)
#define I2C_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE)
#define PC MUX_PAD_CTRL(I2C_PAD_CTRL)
-struct i2c_pads_info i2c_pad_info1 = {
+static struct i2c_pads_info i2c_pad_info1 = {
.scl = {
.i2c_mode = IMX8MQ_PAD_I2C1_SCL__I2C1_SCL | PC,
.gpio_mode = IMX8MQ_PAD_I2C1_SCL__GPIO5_IO14 | PC,
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] imx8mq_evk: Staticize when appropriate
2019-05-18 16:18 [U-Boot] [PATCH] imx8mq_evk: Staticize when appropriate Fabio Estevam
@ 2019-05-20 1:41 ` Peng Fan
2019-06-11 8:44 ` sbabic at denx.de
1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan @ 2019-05-20 1:41 UTC (permalink / raw)
To: u-boot
> Subject: [PATCH] imx8mq_evk: Staticize when appropriate
>
> Staticize 'spl_dram_init' and 'i2c_pad_info1' to fix the following sparse
> warnings:
>
> board/freescale/imx8mq_evk/spl.c:30:6: warning: symbol 'spl_dram_init' was
> not declared. Should it be static?
> board/freescale/imx8mq_evk/spl.c:41:22: warning: symbol 'i2c_pad_info1'
> was not declared. Should it be static?
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
> board/freescale/imx8mq_evk/spl.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/board/freescale/imx8mq_evk/spl.c
> b/board/freescale/imx8mq_evk/spl.c
> index e6cbc34b0d..3c0ff0bb1b 100644
> --- a/board/freescale/imx8mq_evk/spl.c
> +++ b/board/freescale/imx8mq_evk/spl.c
> @@ -27,7 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
>
> extern struct dram_timing_info dram_timing_b0;
>
> -void spl_dram_init(void)
> +static void spl_dram_init(void)
> {
> /* ddr init */
> if ((get_cpu_rev() & 0xfff) == CHIP_REV_2_1) @@ -38,7 +38,7 @@ void
> spl_dram_init(void)
>
> #define I2C_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS |
> PAD_CTL_PUE)
> #define PC MUX_PAD_CTRL(I2C_PAD_CTRL)
> -struct i2c_pads_info i2c_pad_info1 = {
> +static struct i2c_pads_info i2c_pad_info1 = {
> .scl = {
> .i2c_mode = IMX8MQ_PAD_I2C1_SCL__I2C1_SCL | PC,
> .gpio_mode = IMX8MQ_PAD_I2C1_SCL__GPIO5_IO14 | PC,
Reviewed-by: Peng Fan <peng.fan@nxp.com>
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] imx8mq_evk: Staticize when appropriate
2019-05-18 16:18 [U-Boot] [PATCH] imx8mq_evk: Staticize when appropriate Fabio Estevam
2019-05-20 1:41 ` Peng Fan
@ 2019-06-11 8:44 ` sbabic at denx.de
1 sibling, 0 replies; 3+ messages in thread
From: sbabic at denx.de @ 2019-06-11 8:44 UTC (permalink / raw)
To: u-boot
> Staticize 'spl_dram_init' and 'i2c_pad_info1' to fix the
> following sparse warnings:
> board/freescale/imx8mq_evk/spl.c:30:6: warning: symbol 'spl_dram_init' was not declared. Should it be static?
> board/freescale/imx8mq_evk/spl.c:41:22: warning: symbol 'i2c_pad_info1' was not declared. Should it be static?
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-11 8:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-18 16:18 [U-Boot] [PATCH] imx8mq_evk: Staticize when appropriate Fabio Estevam
2019-05-20 1:41 ` Peng Fan
2019-06-11 8:44 ` sbabic at denx.de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox