kernel_optimize_test/drivers/mtd/spi-nor
Sergei Shtylyov 3d63ee5deb
mtd: spi-nor: fix silent truncation in spi_nor_read_raw()
spi_nor_read_raw() assigns the result of 'ssize_t spi_nor_read_data()'
to the 'int ret' variable, while 'ssize_t' is a 64-bit type and *int*
is a 32-bit type on the 64-bit machines. This silent truncation isn't
really valid, so fix up the variable's type.

Fixes: f384b352cb ("mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
2019-11-02 12:16:38 +02:00
..
aspeed-smc.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
cadence-quadspi.c mtd: spi-nor: cadence-quadspi: Fix cqspi_command_read() definition 2019-10-23 09:27:21 +03:00
hisi-sfc.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
intel-spi-pci.c mtd: spi-nor: intel-spi: Add support for Intel Comet Lake-H SPI serial flash 2019-11-02 12:16:36 +02:00
intel-spi-platform.c mtd: spi-nor: intel-spi: Convert to use SPDX identifier 2019-06-22 14:59:27 +03:00
intel-spi.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
intel-spi.h mtd: spi-nor: intel-spi: Convert to use SPDX identifier 2019-06-22 14:59:27 +03:00
Kconfig mtd: spi-nor: Move m25p80 code in spi-nor.c 2019-08-12 10:54:12 +03:00
Makefile mtd: spi-nor: stm32: remove the driver as it was replaced by spi-stm32-qspi.c 2019-06-07 07:10:38 +03:00
mtk-quadspi.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
nxp-spifi.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
spi-nor.c mtd: spi-nor: fix silent truncation in spi_nor_read_raw() 2019-11-02 12:16:38 +02:00