linux_dsm_epyc7002/drivers/mtd/nand/raw
Nathan Chancellor e2bfa4ca23 mtd: rawnand: sh_flctl: Use proper enum for flctl_dma_fifo0_transfer
Clang warns when one enumerated type is converted implicitly to another:

drivers/mtd/nand/raw/sh_flctl.c:483:46: warning: implicit conversion
from enumeration type 'enum dma_transfer_direction' to different
enumeration type 'enum dma_data_direction' [-Wenum-conversion]
                flctl_dma_fifo0_transfer(flctl, buf, rlen, DMA_DEV_TO_MEM) > 0)
                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
drivers/mtd/nand/raw/sh_flctl.c:542:46: warning: implicit conversion
from enumeration type 'enum dma_transfer_direction' to different
enumeration type 'enum dma_data_direction' [-Wenum-conversion]
                flctl_dma_fifo0_transfer(flctl, buf, rlen, DMA_MEM_TO_DEV) > 0)
                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
2 warnings generated.

Use the proper enums from dma_data_direction to satisfy Clang.

DMA_MEM_TO_DEV = DMA_TO_DEVICE = 1
DMA_DEV_TO_MEM = DMA_FROM_DEVICE = 2

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2018-10-03 11:12:25 +02:00
..
atmel mtd: rawnand: atmel: Fix potential NULL pointer dereference 2018-10-03 11:12:25 +02:00
bcm47xxnflash mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
brcmnand mtd: rawnand: Deprecate ->dev_ready() and ->waitfunc() 2018-10-03 11:12:25 +02:00
gpmi-nand mtd: rawnand: Deprecate ->block_{bad,markbad}() hooks 2018-10-03 11:12:25 +02:00
ams-delta.c mtd: rawnand: ams-delta: Set port direction when needed 2018-10-03 11:12:25 +02:00
au1550nd.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
cafe_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
cmx270_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
cs553x_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
davinci_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
denali_dt.c mtd: rawnand: denali: use SPDX-License-Identifier and fix license mismatch 2018-09-04 23:37:40 +02:00
denali_pci.c mtd: rawnand: denali: use SPDX-License-Identifier and fix license mismatch 2018-09-04 23:37:40 +02:00
denali.c mtd: rawnand: Deprecate ->erase() 2018-10-03 11:12:25 +02:00
denali.h mtd: rawnand: denali: use SPDX-License-Identifier and fix license mismatch 2018-09-04 23:37:40 +02:00
diskonchip.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
fsl_elbc_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
fsl_ifc_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
fsl_upm.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
fsmc_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
gpio.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
hisi504_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
internals.h mtd: rawnand: ESMT: retrieve ECC requirements from 5th id byte 2018-10-03 11:12:25 +02:00
jz4740_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
jz4780_bch.c
jz4780_bch.h
jz4780_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
Kconfig mtd: rawnand: Remove docg4 2018-10-03 11:12:25 +02:00
lpc32xx_mlc.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
lpc32xx_slc.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
Makefile mtd: rawnand: ESMT: retrieve ECC requirements from 5th id byte 2018-10-03 11:12:25 +02:00
marvell_nand.c mtd: rawnand: marvell: Add support for 8kiB pages NAND chips layout 2018-10-03 11:12:25 +02:00
mpc5121_nfc.c mtd: rawnand: Deprecate ->{set,get}_features() hooks 2018-10-03 11:12:25 +02:00
mtk_ecc.c mtd: rawnand: mtk: use of_device_get_match_data() 2018-04-29 08:56:41 +02:00
mtk_ecc.h
mtk_nand.c mtd: rawnand: Deprecate ->dev_ready() and ->waitfunc() 2018-10-03 11:12:25 +02:00
mxc_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
nand_amd.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nand_base.c mtd: rawnand: Move JEDEC code to nand_jedec.c 2018-10-03 11:12:25 +02:00
nand_bbt.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nand_bch.c mtd: rawnand: Pass a nand_chip object to ecc->correct() 2018-10-03 11:12:25 +02:00
nand_ecc.c mtd: rawnand: Pass a nand_chip object to ecc->write_xxx() hooks 2018-10-03 11:12:25 +02:00
nand_esmt.c mtd: rawnand: ESMT: retrieve ECC requirements from 5th id byte 2018-10-03 11:12:25 +02:00
nand_hynix.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nand_ids.c mtd: rawnand: ESMT: retrieve ECC requirements from 5th id byte 2018-10-03 11:12:25 +02:00
nand_jedec.c mtd: rawnand: Move JEDEC code to nand_jedec.c 2018-10-03 11:12:25 +02:00
nand_legacy.c mtd: rawnand: Move legacy code to nand_legacy.c 2018-10-03 11:12:25 +02:00
nand_macronix.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nand_micron.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nand_onfi.c mtd: rawnand: Move ONFI code to nand_onfi.c 2018-10-03 11:12:25 +02:00
nand_samsung.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nand_timings.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nand_toshiba.c mtd: rawnand: Keep all internal stuff private 2018-10-03 11:12:25 +02:00
nandsim.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
ndfc.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
nuc900_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
omap2.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
omap_elm.c
orion_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
oxnas_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
pasemi_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
plat_nand.c mtd: rawnand: Move platform_nand_xxx definitions out of rawnand.h 2018-10-03 11:12:25 +02:00
qcom_nandc.c mtd: rawnand: Deprecate ->{set,get}_features() hooks 2018-10-03 11:12:25 +02:00
r852.c mtd: rawnand: Deprecate ->dev_ready() and ->waitfunc() 2018-10-03 11:12:25 +02:00
r852.h
s3c2410.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
sh_flctl.c mtd: rawnand: sh_flctl: Use proper enum for flctl_dma_fifo0_transfer 2018-10-03 11:12:25 +02:00
sharpsl.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
sm_common.c mtd: rawnand: Deprecate ->block_{bad,markbad}() hooks 2018-10-03 11:12:25 +02:00
sm_common.h
socrates_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
sunxi_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
tango_nand.c mtd: rawnand: Deprecate ->dev_ready() and ->waitfunc() 2018-10-03 11:12:25 +02:00
tegra_nand.c mtd: rawnand: Pass a nand_chip object to chip->setup_data_interface() 2018-10-03 11:12:25 +02:00
tmio_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
txx9ndfmc.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
vf610_nfc.c mtd: rawnand: Pass a nand_chip object to chip->select_chip() 2018-10-03 11:12:25 +02:00
xway_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00