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

The variable grf is only referenced if EARLY_DEBUG is defined so move the
declaration to be under the existing guard.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
 arch/arm/mach-rockchip/rk3036-board-spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/rk3036-board-spl.c b/arch/arm/mach-rockchip/rk3036-board-spl.c
index 0522d6546742..7b8d0ee653f8 100644
--- a/arch/arm/mach-rockchip/rk3036-board-spl.c
+++ b/arch/arm/mach-rockchip/rk3036-board-spl.c
@@ -17,13 +17,13 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 #define GRF_BASE	0x20008000
-static struct rk3036_grf * const grf = (void *)GRF_BASE;
 
 #define DEBUG_UART_BASE	0x20068000
 
 void board_init_f(ulong dummy)
 {
 #ifdef EARLY_DEBUG
+	struct rk3036_grf * const grf = (void *)GRF_BASE;
 	/*
 	 * NOTE: sd card and debug uart use same iomux in rk3036,
 	 * so if you enable uart,
-- 
1.9.1

  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 ` Tom Rini [this message]
2017-05-09  3:19   ` [U-Boot] [PATCH 02/17] rk3036: Fix unused variable warning 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 ` [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-2-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.