[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130408095754.GQ24058@zurbaran>
Date: Mon, 8 Apr 2013 11:57:54 +0200
From: Samuel Ortiz <sameo@...ux.intel.com>
To: Jingoo Han <jg1.han@...sung.com>
Cc: 'Mark Brown' <broonie@...nsource.wolfsonmicro.com>,
patches@...nsource.wolfsonmicro.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] mfd: wm8994: silence bogus warning in
wm8994_device_init()
Hi Jingoo,
On Wed, Feb 20, 2013 at 11:53:36AM +0900, Jingoo Han wrote:
> 'patch_regs' cannot be used uninitialized in wm8994_device_init(),
> because 'patch_regs' was already guarded by 'regmap_patch'.
> Thus, that's a bogus warning.
>
> Without this patch, the build warning happens as below:
>
> drivers/mfd/wm8994-core.c: In function 'wm8994_i2c_probe':
> drivers/mfd/wm8994-core.c:595:7: warning: 'patch_regs' may be used uninitialized in this function [-Wuninitialized]
> drivers/mfd/wm8994-core.c:408:14: note: 'patch_regs' was declared here
>
> Signed-off-by: Jingoo Han <jg1.han@...sung.com>
> ---
> drivers/mfd/wm8994-core.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists