diff options
| author | Yejune Deng <yejune.deng@gmail.com> | 2020-12-10 14:49:58 +0800 |
|---|---|---|
| committer | Rich Felker <dalias@libc.org> | 2021-02-23 17:06:46 -0500 |
| commit | 258cf5f8aef48f76e1933fc9524a476d21e21e68 (patch) | |
| tree | 2db58ff688422e0d65b66cf676b87fc71460bc39 | |
| parent | 71ae1f7c775ed6cc9a1f31e34030b3695f3d42a1 (diff) | |
| download | linux-next-258cf5f8aef48f76e1933fc9524a476d21e21e68.tar.gz | |
sh: kdump: add some attribute to function
Notice: this object is not reachable from any branch.
add '__iomem' for ioremap() and '__user' for copy_to_user().
Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Rich Felker <dalias@libc.org>
Notice: this object is not reachable from any branch.
| -rw-r--r-- | arch/sh/kernel/crash_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/crash_dump.c b/arch/sh/kernel/crash_dump.c index a9086127b16db..5b41b59698c1e 100644 --- a/arch/sh/kernel/crash_dump.c +++ b/arch/sh/kernel/crash_dump.c @@ -26,7 +26,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf) { - void *vaddr; + void __iomem *vaddr; if (!csize) return 0; @@ -34,7 +34,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, vaddr = ioremap(pfn << PAGE_SHIFT, PAGE_SIZE); if (userbuf) { - if (copy_to_user(buf, (vaddr + offset), csize)) { + if (copy_to_user((void __user *)buf, (vaddr + offset), csize)) { iounmap(vaddr); return -EFAULT; } |
