All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 06/17] mx6ul_14x14_evk: Fix unused variable warning
Date: Mon,  8 May 2017 22:14:24 -0400	[thread overview]
Message-ID: <1494296075-29477-6-git-send-email-trini@konsulko.com> (raw)
In-Reply-To: <1494296075-29477-1-git-send-email-trini@konsulko.com>

The variable usdhc1_pads is only referenced during SPL builds, add a guard.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index b28ce1049589..a5746fe08688 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -225,6 +225,7 @@ static iomux_v3_cfg_t const uart1_pads[] = {
 	MX6_PAD_UART1_RX_DATA__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
 };
 
+#ifndef CONFIG_SPL_BUILD
 static iomux_v3_cfg_t const usdhc1_pads[] = {
 	MX6_PAD_SD1_CLK__USDHC1_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL),
 	MX6_PAD_SD1_CMD__USDHC1_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL),
@@ -240,6 +241,7 @@ static iomux_v3_cfg_t const usdhc1_pads[] = {
 	/* RST_B */
 	MX6_PAD_GPIO1_IO09__GPIO1_IO09 | MUX_PAD_CTRL(NO_PAD_CTRL),
 };
+#endif
 
 /*
  * mx6ul_14x14_evk board default supports sd card. If want to use
-- 
1.9.1

  parent reply	other threads:[~2017-05-09  2:14 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09  2:14 [U-Boot] [PATCH 01/17] socrates: Fix a misleading indentation warning Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 02/17] rk3036: Fix unused variable warning Tom Rini
2017-05-09  3:19   ` Simon Glass
2017-05-12 17:21   ` [U-Boot] [U-Boot,02/17] " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 03/17] ot1200: " Tom Rini
2017-05-09  9:15   ` Christian Gmeiner
2017-05-12 17:22   ` [U-Boot] [U-Boot,03/17] " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 04/17] cgtqmx6eval: " Tom Rini
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 05/17] mx6slevk: " Tom Rini
2017-05-09  2:36   ` Peng Fan
2017-05-09  7:26   ` Stefano Babic
2017-05-12 17:22   ` [U-Boot] [U-Boot,05/17] " Tom Rini
2017-05-09  2:14 ` Tom Rini [this message]
2017-05-09  2:39   ` [U-Boot] [PATCH 06/17] mx6ul_14x14_evk: " Peng Fan
2017-05-09  7:26   ` Stefano Babic
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 07/17] gw_ventana: Fix unused variable warnings Tom Rini
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 08/17] gdsys: P1022: " Tom Rini
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 09/17] pcm058: " Tom Rini
2017-05-09  7:26   ` Stefano Babic
2017-05-12 17:22   ` [U-Boot] [U-Boot,09/17] " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 10/17] apalis_imx6: Fix unused variable warning Tom Rini
2017-05-09 18:21   ` Max Krummenacher
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 11/17] colibri_imx7: " Tom Rini
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 12/17] video: ld9040: Fix unused variable warnings Tom Rini
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 13/17] net: eepro100: Fix unused variable warning Tom Rini
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 14/17] net: phy: mv88e61xx: Fix uninitialized " Tom Rini
2017-05-09 10:44   ` Chris Packham
2017-05-12 17:22   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 15/17] net: uli526x: Fix unknown storage size error Tom Rini
2017-05-12 17:23   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 16/17] common: Only build cli_readline.o for CMDLINE on non-SPL Tom Rini
2017-05-12 17:23   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-09  2:14 ` [U-Boot] [PATCH 17/17] m5253demo: Fix static variable in non-static inline function warning Tom Rini
2017-05-12 17:23   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-12 17:21 ` [U-Boot] [U-Boot, 01/17] socrates: Fix a misleading indentation warning Tom Rini

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=1494296075-29477-6-git-send-email-trini@konsulko.com \
    --to=trini@konsulko.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.