diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-01-03 17:41:58 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-01-09 20:09:05 +0100 |
commit | 14ebf24175df0f216256c8483ee2974f35a1a89c (patch) | |
tree | f9b0b0674183bcd102a022ed56434eaf0c6c983a /kernel/profile.c | |
parent | 44f45994f438b4f4e0ba977b173980268983c60f (diff) | |
download | linux-14ebf24175df0f216256c8483ee2974f35a1a89c.tar.gz linux-14ebf24175df0f216256c8483ee2974f35a1a89c.tar.bz2 linux-14ebf24175df0f216256c8483ee2974f35a1a89c.zip |
mtd: onenand: samsung: Fix iomem access with regular memcpy
The __iomem memory should be copied with memcpy_fromio. This fixes
Sparse warnings like:
drivers/mtd/nand/onenand/samsung_mtd.c:678:40: warning: incorrect type in argument 2 (different address spaces)
drivers/mtd/nand/onenand/samsung_mtd.c:678:40: expected void const *from
drivers/mtd/nand/onenand/samsung_mtd.c:678:40: got void [noderef] <asn:2> *[assigned] p
drivers/mtd/nand/onenand/samsung_mtd.c:679:19: warning: incorrect type in assignment (different address spaces)
drivers/mtd/nand/onenand/samsung_mtd.c:679:19: expected void [noderef] <asn:2> *[assigned] p
drivers/mtd/nand/onenand/samsung_mtd.c:679:19: got unsigned char *
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'kernel/profile.c')
0 files changed, 0 insertions, 0 deletions