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 04/17] cgtqmx6eval: Fix unused variable warning
Date: Mon,  8 May 2017 22:14:22 -0400	[thread overview]
Message-ID: <1494296075-29477-4-git-send-email-trini@konsulko.com> (raw)
In-Reply-To: <1494296075-29477-1-git-send-email-trini@konsulko.com>

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

Cc: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
 board/congatec/cgtqmx6eval/cgtqmx6eval.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/congatec/cgtqmx6eval/cgtqmx6eval.c b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
index a4a602943ed2..24956a8a94e5 100644
--- a/board/congatec/cgtqmx6eval/cgtqmx6eval.c
+++ b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
@@ -71,6 +71,7 @@ static iomux_v3_cfg_t const uart2_pads[] = {
 	IOMUX_PADS(PAD_EIM_D27__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)),
 };
 
+#ifndef CONFIG_SPL_BUILD
 static iomux_v3_cfg_t const usdhc2_pads[] = {
 	IOMUX_PADS(PAD_SD2_CLK__SD2_CLK   | MUX_PAD_CTRL(USDHC_PAD_CTRL)),
 	IOMUX_PADS(PAD_SD2_CMD__SD2_CMD   | MUX_PAD_CTRL(USDHC_PAD_CTRL)),
@@ -94,6 +95,7 @@ static iomux_v3_cfg_t const usdhc3_pads[] = {
 	IOMUX_PADS(PAD_SD3_DAT7__SD3_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL)),
 	IOMUX_PADS(PAD_SD3_RST__SD3_RESET | MUX_PAD_CTRL(USDHC_PAD_CTRL)),
 };
+#endif
 
 static iomux_v3_cfg_t const usdhc4_pads[] = {
 	IOMUX_PADS(PAD_SD4_CLK__SD4_CLK   | MUX_PAD_CTRL(USDHC_PAD_CTRL)),
-- 
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 ` Tom Rini [this message]
2017-05-12 17:22   ` [U-Boot] [U-Boot, 04/17] cgtqmx6eval: " 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 ` [U-Boot] [PATCH 06/17] mx6ul_14x14_evk: " Tom Rini
2017-05-09  2:39   ` 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-4-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.