]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/csky/kernel/perf_callchain.c
uaccess: fix type mismatch warnings from access_ok()
[mirror_ubuntu-jammy-kernel.git] / arch / csky / kernel / perf_callchain.c
index 35318a635a5fae7b6de24723f6f43338bab85b67..75e1f9df5f60449c6ec65c3e97ed3bd5ca2b07e2 100644 (file)
@@ -49,7 +49,7 @@ static unsigned long user_backtrace(struct perf_callchain_entry_ctx *entry,
 {
        struct stackframe buftail;
        unsigned long lr = 0;
-       unsigned long *user_frame_tail = (unsigned long *)fp;
+       unsigned long __user *user_frame_tail = (unsigned long __user *)fp;
 
        /* Check accessibility of one struct frame_tail beyond */
        if (!access_ok(user_frame_tail, sizeof(buftail)))