[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20230522155848.46842-1-miquel.raynal@bootlin.com>
Date: Mon, 22 May 2023 17:58:47 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Tudor Ambarus <tudor.ambarus@...aro.org>, miquel.raynal@...tlin.com
Cc: pratyush@...nel.org, michael@...le.cc, richard@....at,
vigneshr@...com, Takahiro.Kuwano@...ineon.com,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
geert@...ux-m68k.org
Subject: Re: [PATCH v2] mtd: spi-nor: spansion: make sure local struct does not contain garbage
On Tue, 2023-05-09 at 19:39:00 UTC, Tudor Ambarus wrote:
> Following errors were seen with um-x86_64-gcc12/um-allyesconfig:
> + /kisskb/src/drivers/mtd/spi-nor/spansion.c: error: 'op' is used uninitialized [-Werror=uninitialized]: => 495:27, 364:27
>
> Initialise local struct spi_mem_op with all zeros at declaration in
> order to avoid using garbage data for fields that are not explicitly
> set afterwards.
>
> Reported-by: Geert Uytterhoeven <geert@...ux-m68k.org>
> Fixes: c87c9b11c53ce ("mtd: spi-nor: spansion: Determine current address mode")
> Fixes: 6afcc84080c41 ("mtd: spi-nor: spansion: Add support for Infineon S25FS256T")
> Signed-off-by: Tudor Ambarus <tudor.ambarus@...aro.org>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.
Miquel
Powered by blists - more mailing lists