Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1341186

Re: [PATCH 2/3] ARM: omap1: avoid unused variable warning

From Aaro Koskinen <aaro.koskinen@iki.fi>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] ARM: omap1: avoid unused variable warning
Date 2016-02-24 00:50 +0100
Message-ID <r5uSm-4mi-17@gated-at.bofh.it> (permalink)
References <r5lFo-6dV-25@gated-at.bofh.it> <r5lFo-6dV-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Feb 23, 2016 at 02:57:52PM +0100, Arnd Bergmann wrote:
> The osk_mistral_init() contains code that is only compiled when
> CONFIG_PM is set, but it uses a variable that is declared outside
> of the #ifdef:
> 
> arch/arm/mach-omap1/board-osk.c: In function 'osk_mistral_init':
> arch/arm/mach-omap1/board-osk.c:513:7: warning: unused variable 'ret' [-Wunused-variable]
> 
> This puts the variable in the same #ifdef to avoid the warning.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>

A.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 2/3] ARM: omap1: avoid unused variable warning Arnd Bergmann <arnd@arndb.de> - 2016-02-23 15:00 +0100
  Re: [PATCH 2/3] ARM: omap1: avoid unused variable warning Tony Lindgren <tony@atomide.com> - 2016-02-23 17:20 +0100
  Re: [PATCH 2/3] ARM: omap1: avoid unused variable warning Aaro Koskinen <aaro.koskinen@iki.fi> - 2016-02-24 00:50 +0100

csiph-web