Skip to content

Commit 29d53c5

Browse files
William Zhangmiquelraynal
authored andcommitted
mtd: rawnand: brcmnand: fix sparse warnings
Fix the following sparse warnings: sparse warnings: (new ones prefixed by >>) >> drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:79:41: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:80:17: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:80:17: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:80:17: sparse: sparse: cast removes address space '__iomem' of expression Fixes: c52c16d ("mtd: rawnand: brcmnand: Add BCMBCA read data bus interface") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: William Zhang <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 1c60e02 commit 29d53c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ static void bcmbca_read_data_bus(struct brcmnand_soc *soc,
7676
* and dest address, which is incompatible with nand cache. Fallback
7777
* to the memcpy_fromio in such case
7878
*/
79-
if (bcmbca_nand_is_buf_aligned((void *)flash_cache, buffer))
80-
memcpy((void *)buffer, (void *)flash_cache, fc_words * 4);
79+
if (bcmbca_nand_is_buf_aligned((void __force *)flash_cache, buffer))
80+
memcpy((void *)buffer, (void __force *)flash_cache, fc_words * 4);
8181
else
8282
memcpy_fromio((void *)buffer, flash_cache, fc_words * 4);
8383
}

0 commit comments

Comments
 (0)