* [PATCH] mtd: rawnand: ndfc: fix gcc uninitialized var
@ 2026-06-14 6:31 Rosen Penev
2026-06-29 14:39 ` Miquel Raynal
0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2026-06-14 6:31 UTC (permalink / raw)
To: linux-mtd
Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra, open list
Now that this can be built with COMPILE_TEST, an unassigned variable was
found. Set to 0 to fix the W=1 error under GCC.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202606141301.iyVdFgl7-lkp@intel.com/
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/mtd/nand/raw/ndfc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/ndfc.c b/drivers/mtd/nand/raw/ndfc.c
index a937ca3eeff5..a48274297d3b 100644
--- a/drivers/mtd/nand/raw/ndfc.c
+++ b/drivers/mtd/nand/raw/ndfc.c
@@ -188,7 +188,7 @@ static int ndfc_probe(struct platform_device *ofdev)
const __be32 *reg;
u32 ccr;
u32 cs;
- int err, len;
+ int err, len = 0;
/* Read the reg property to get the chip select */
reg = of_get_property(ofdev->dev.of_node, "reg", &len);
--
2.54.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: rawnand: ndfc: fix gcc uninitialized var
2026-06-14 6:31 [PATCH] mtd: rawnand: ndfc: fix gcc uninitialized var Rosen Penev
@ 2026-06-29 14:39 ` Miquel Raynal
0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2026-06-29 14:39 UTC (permalink / raw)
To: linux-mtd, Rosen Penev
Cc: Richard Weinberger, Vignesh Raghavendra, linux-kernel
On Sat, 13 Jun 2026 23:31:52 -0700, Rosen Penev wrote:
> Now that this can be built with COMPILE_TEST, an unassigned variable was
> found. Set to 0 to fix the W=1 error under GCC.
>
>
Applied to mtd/fixes, thanks!
[1/1] mtd: rawnand: ndfc: fix gcc uninitialized var
commit: cceca8cb776b03e83985578f84bd730c30d57f70
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-29 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-14 6:31 [PATCH] mtd: rawnand: ndfc: fix gcc uninitialized var Rosen Penev
2026-06-29 14:39 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®