• Lars-Peter Clausen's avatar
    Blackfin: Annotate strncpy_from_user src parameter with __user · d95dcaa0
    Lars-Peter Clausen authored
    The src parameter of strncpy_from_user is supposed to take a string from
    userspace, so it should be annotated with __user. Doing so fixes the following
    and similar warnings from sparse:
    
    	kernel/sys.c:491:51: warning: incorrect type in argument 2 (different address spaces)
    	kernel/sys.c:491:51:    expected char const *src
    	kernel/sys.c:491:51:    got void [noderef] <asn:1>*arg
    	kernel/sys.c:2061:54: warning: incorrect type in argument 2 (different address spaces)
    	kernel/sys.c:2061:54:    expected char const *src
    	kernel/sys.c:2061:54:    got char [noderef] <asn:1>*<noident>
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
    d95dcaa0
uaccess.h 7.45 KB