Re: [PATCH 02/28] [v2] mtd: mtk: avoid warning in mtk_ecc_encode

2016-10-18 Thread Boris Brezillon
On Tue, 18 Oct 2016 18:12:32 +0800 RogerCC.Lin wrote: > On Tue, 2016-10-18 at 07:19 +0200, Boris Brezillon wrote: > > On Tue, 18 Oct 2016 00:05:31 +0200 > > Arnd Bergmann wrote: > > > > > When building with -Wmaybe-uninitialized, gcc produces a silly false > > > positive > > > warning for th

Re: [PATCH 02/28] [v2] mtd: mtk: avoid warning in mtk_ecc_encode

2016-10-17 Thread Boris Brezillon
On Tue, 18 Oct 2016 00:05:31 +0200 Arnd Bergmann wrote: > When building with -Wmaybe-uninitialized, gcc produces a silly false positive > warning for the mtk_ecc_encode function: > > drivers/mtd/nand/mtk_ecc.c: In function 'mtk_ecc_encode': > drivers/mtd/nand/mtk_ecc.c:402:15: error: 'val' may b

[PATCH 02/28] [v2] mtd: mtk: avoid warning in mtk_ecc_encode

2016-10-17 Thread Arnd Bergmann
When building with -Wmaybe-uninitialized, gcc produces a silly false positive warning for the mtk_ecc_encode function: drivers/mtd/nand/mtk_ecc.c: In function 'mtk_ecc_encode': drivers/mtd/nand/mtk_ecc.c:402:15: error: 'val' may be used uninitialized in this function [-Werror=maybe-uninitialized]