Skip to content

Commit

Permalink
xtensa: uaccess: Add missing __user to strncpy_from_user() prototype
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Max Filippov <[email protected]>
  • Loading branch information
pinchartl authored and jcmvbkbc committed Nov 17, 2020
1 parent 3a860d1 commit dc293f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down

0 comments on commit dc293f2

Please sign in to comment.