linux-kernel-test/drivers/mtd/nand/raw
Paul Burton df8fed831c mtd: rawnand: au1550nd: Fix au_read_buf16() prototype
Commit 7e534323c4 ("mtd: rawnand: Pass a nand_chip object to
chip->read_xxx() hooks") modified the prototype of the struct nand_chip
read_buf function pointer. In the au1550nd driver we have 2
implementations of read_buf. The previously mentioned commit modified
the au_read_buf() implementation to match the function pointer, but not
au_read_buf16(). This results in a compiler warning for MIPS
db1xxx_defconfig builds:

  drivers/mtd/nand/raw/au1550nd.c:443:57:
    warning: pointer type mismatch in conditional expression

Fix this by updating the prototype of au_read_buf16() to take a struct
nand_chip pointer as its first argument, as is expected after commit
7e534323c4 ("mtd: rawnand: Pass a nand_chip object to chip->read_xxx()
hooks").

Note that this shouldn't have caused any functional issues at runtime,
since the offset of the struct mtd_info within struct nand_chip is 0
making mtd_to_nand() effectively a type-cast.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: 7e534323c4 ("mtd: rawnand: Pass a nand_chip object to chip->read_xxx() hooks")
Cc: stable@vger.kernel.org # v4.20+
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2019-10-07 09:56:36 +02:00
..
atmel
bcm47xxnflash treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
brcmnand mtd: rawnand: brcmnand: Fix ecc chunk calculation for erased page bitfips 2019-08-29 14:26:38 +02:00
gpmi-nand mtd: rawnand: gpmi: remove double assignment to block_size 2019-06-27 20:06:42 +02:00
ingenic Main MIPS changes for v5.4: 2019-09-22 09:30:30 -07:00
ams-delta.c
au1550nd.c mtd: rawnand: au1550nd: Fix au_read_buf16() prototype 2019-10-07 09:56:36 +02:00
cafe_nand.c
cmx270_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cs553x_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
davinci_nand.c
denali_dt.c
denali_pci.c
denali.c
denali.h
diskonchip.c
fsl_elbc_nand.c
fsl_ifc_nand.c
fsl_upm.c
fsmc_nand.c mtd: rawnand: fsmc: Use nand_op_trace for operation tracing 2019-06-27 20:05:26 +02:00
gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
hisi504_nand.c
internals.h
Kconfig mtd: rawnand: remove w90x900 driver 2019-08-26 09:25:41 +02:00
lpc32xx_mlc.c
lpc32xx_slc.c
Makefile mtd: rawnand: remove w90x900 driver 2019-08-26 09:25:41 +02:00
marvell_nand.c
meson_nand.c mtd: rawnand: meson: Add of_node_put() before return 2019-07-25 14:21:44 +02:00
mpc5121_nfc.c
mtk_ecc.c mtd: rawnand: mtk: Re-license MTK NAND driver as Dual MIT/GPL 2019-06-27 20:07:46 +02:00
mtk_ecc.h mtd: rawnand: mtk: Re-license MTK NAND driver as Dual MIT/GPL 2019-06-27 20:07:46 +02:00
mtk_nand.c mtd: rawnand: mtk: Re-license MTK NAND driver as Dual MIT/GPL 2019-06-27 20:07:46 +02:00
mxc_nand.c
mxic_nand.c mtd: rawnand: Add Macronix raw NAND controller driver 2019-08-26 09:25:41 +02:00
nand_amd.c
nand_base.c mtd: rawnand: remove redundant assignment to variable ret 2019-08-07 18:15:38 +02:00
nand_bbt.c mtd: rawnand: Fix a memory leak bug 2019-08-24 13:13:41 +02:00
nand_bch.c mtd: rawnand: Use kzalloc() instead of kmalloc() and memset() 2019-06-28 12:00:46 +02:00
nand_ecc.c docs: mtd: move it to the driver-api book 2019-07-15 09:20:28 -03:00
nand_esmt.c
nand_hynix.c
nand_ids.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
nand_jedec.c
nand_legacy.c
nand_macronix.c mtd: rawnand: Add Macronix NAND read retry support 2019-06-27 20:06:40 +02:00
nand_micron.c mtd: rawnand: micron: handle on-die "ECC-off" devices correctly 2019-08-03 02:00:01 +02:00
nand_onfi.c
nand_samsung.c
nand_timings.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
nand_toshiba.c
nandsim.c
ndfc.c
omap2.c mtd: rawnand: omap2: Fix number of bitflips reporting with ELM 2019-08-29 14:28:09 +02:00
omap_elm.c
orion_nand.c
oxnas_nand.c mtd: rawnand: oxnas: Add of_node_put() 2019-07-25 14:21:44 +02:00
pasemi_nand.c
plat_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
qcom_nandc.c
r852.c mtd: rawnand: r852: Use dev_get_drvdata 2019-08-07 18:15:38 +02:00
r852.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
s3c2410.c
sh_flctl.c
sharpsl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sm_common.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sm_common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
socrates_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
stm32_fmc2_nand.c mtd: rawnand: stm32_fmc2: avoid warnings when building with W=1 option 2019-07-25 14:21:19 +02:00
sunxi_nand.c mtd: rawnand: sunxi: Add A23/A33 DMA support with extra MBUS configuration 2019-07-05 22:30:58 +02:00
tango_nand.c mtd: rawnand: tango: Add of_node_put() before return 2019-07-25 14:21:44 +02:00
tegra_nand.c
tmio_nand.c
txx9ndfmc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vf610_nfc.c mtd: rawnand: vf610: Add of_node_put() before goto 2019-07-25 14:21:44 +02:00
xway_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00