[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190614160234.GB28409@ulmo>
Date: Fri, 14 Jun 2019 18:02:34 +0200
From: Thierry Reding <thierry.reding@...il.com>
To: Nathan Huckleberry <nhuck@...gle.com>
Cc: jonathanh@...dia.com, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org, clang-built-linux@...glegroups.com
Subject: Re: [PATCH v2] memory: tegra: Fix -Wunused-const-variable
On Thu, Jun 13, 2019 at 11:26:10AM -0700, Nathan Huckleberry wrote:
> Clang produces the following warning
>
> drivers/memory/tegra/tegra124.c:36:28: warning: unused variable
> 'tegra124_mc_emem_regs' [-Wunused-const-variable]
> static const unsigned long tegra124_mc_emem_regs[] = {
> ^
>
> The only usage of this variable is from within an ifdef.
> It seems logical to move the variable into the ifdef as well.
>
> Cc: clang-built-linux@...glegroups.com
> Link: https://github.com/ClangBuiltLinux/linux/issues/526
> Signed-off-by: Nathan Huckleberry <nhuck@...gle.com>
> ---
> Changes from v1 -> v2:
> * Moved definition of tegra124_mc_emem_regs into existing ifdef
> drivers/memory/tegra/tegra124.c | 44 ++++++++++++++++-----------------
> 1 file changed, 22 insertions(+), 22 deletions(-)
Applied, thanks.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists