Commit dc293f21 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Max Filippov

xtensa: uaccess: Add missing __user to strncpy_from_user() prototype

When adding __user annotations in commit 2adf5352, the
strncpy_from_user() function declaration for the
CONFIG_GENERIC_STRNCPY_FROM_USER case was missed. Fix it.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Message-Id: <20200831210937.17938-1-laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 3a860d16
...@@ -302,7 +302,7 @@ strncpy_from_user(char *dst, const char __user *src, long count) ...@@ -302,7 +302,7 @@ strncpy_from_user(char *dst, const char __user *src, long count)
return -EFAULT; return -EFAULT;
} }
#else #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 #endif
/* /*
......
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