From: Laurent Pinchart Date: Mon, 31 Aug 2020 21:09:37 +0000 (+0300) Subject: xtensa: uaccess: Add missing __user to strncpy_from_user() prototype X-Git-Tag: iomap-folio-5.17-old~2687^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dc293f2106903ab9c24e9cea18c276e32c394c33;p=users%2Fwilly%2Flinux.git xtensa: uaccess: Add missing __user to strncpy_from_user() prototype When adding __user annotations in commit 2adf5352a34a, the strncpy_from_user() function declaration for the CONFIG_GENERIC_STRNCPY_FROM_USER case was missed. Fix it. Reported-by: kernel test robot Signed-off-by: Laurent Pinchart Message-Id: <20200831210937.17938-1-laurent.pinchart@ideasonboard.com> Signed-off-by: Max Filippov --- diff --git a/arch/xtensa/include/asm/uaccess.h b/arch/xtensa/include/asm/uaccess.h index b9758119feca..5c9fb8005aa8 100644 --- a/arch/xtensa/include/asm/uaccess.h +++ b/arch/xtensa/include/asm/uaccess.h @@ -302,7 +302,7 @@ strncpy_from_user(char *dst, const char __user *src, long count) return -EFAULT; } #else -long strncpy_from_user(char *dst, const char *src, long count); +long strncpy_from_user(char *dst, const char __user *src, long count); #endif /*