Skip to content

Commit dc293f2

Browse files
pinchartljcmvbkbc
authored andcommitted
xtensa: uaccess: Add missing __user to strncpy_from_user() prototype
When adding __user annotations in commit 2adf535, the strncpy_from_user() function declaration for the CONFIG_GENERIC_STRNCPY_FROM_USER case was missed. Fix it. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Message-Id: <20200831210937.17938-1-laurent.pinchart@ideasonboard.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 3a860d1 commit dc293f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/xtensa/include/asm/uaccess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ strncpy_from_user(char *dst, const char __user *src, long count)
302302
return -EFAULT;
303303
}
304304
#else
305-
long strncpy_from_user(char *dst, const char *src, long count);
305+
long strncpy_from_user(char *dst, const char __user *src, long count);
306306
#endif
307307

308308
/*

0 commit comments

Comments
 (0)