[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKohpokakFB6v9P=ocmb3Zx8K6k7qmibzha7+2+boDSBt-TQbQ@mail.gmail.com>
Date: Wed, 7 Nov 2012 14:06:16 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: dwmw2@...radead.org
Cc: linaro-dev@...ts.linaro.org, patches@...aro.org,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
dedekind1@...il.com, Viresh Kumar <viresh.kumar@...aro.org>
Subject: Re: [PATCH] mtd: map: Fix compilation warning
On 29 October 2012 22:47, Viresh Kumar <viresh.kumar@...aro.org> wrote:
> This patch is an attempt to fix following compilation warning.
>
> In file included from drivers/mtd/chips/cfi_cmdset_0001.c:35:0:
> drivers/mtd/chips/cfi_cmdset_0001.c: In function 'cfi_intelext_write_words':
> include/linux/mtd/map.h:331:11: warning: 'r.x[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
>
> I could have used uninitialized_var() too, but didn't used it as the final else
> part of map_word_load() is missing. So there is a chance that it might be passed
> uninitialized. Better initialize to zero.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
Ping!!
--
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