Commit 5347f97c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] c8sectpfe: fix namespace on memcpy/memset

Solves those sparse warnings:

drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1087:9: warning: incorrect type in argument 1 (different address spaces)
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1087:9:    expected void *<noident>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1087:9:    got void [noderef] <asn:2>*<noident>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1090:9: warning: incorrect type in argument 1 (different address spaces)
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1090:9:    expected void *<noident>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1090:9:    got void [noderef] <asn:2>*
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent de2ce8fd
...@@ -1084,10 +1084,10 @@ static void load_dmem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, ...@@ -1084,10 +1084,10 @@ static void load_dmem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr,
seg_num, phdr->p_paddr, phdr->p_filesz, seg_num, phdr->p_paddr, phdr->p_filesz,
dst, phdr->p_memsz); dst, phdr->p_memsz);
memcpy((void __iomem *)dst, (void *)fw->data + phdr->p_offset, memcpy((void __force *)dst, (void *)fw->data + phdr->p_offset,
phdr->p_filesz); phdr->p_filesz);
memset((void __iomem *)dst + phdr->p_filesz, 0, memset((void __force *)dst + phdr->p_filesz, 0,
phdr->p_memsz - phdr->p_filesz); phdr->p_memsz - phdr->p_filesz);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment