From: Lars-Peter Clausen Date: Mon, 22 Oct 2012 14:09:05 +0000 (+0200) Subject: Blackfin: Annotate strnlen_user and strlen_user 'src' parameter with __user X-Git-Tag: v3.8-rc1~64^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a7e0775d0b0dfc083f97c72dc885f6dab8dd27b;p=pandora-kernel.git Blackfin: Annotate strnlen_user and strlen_user 'src' parameter with __user The 'src' parameter of strnlen_user and strlen_user is supposed to take a userspace pointer, so annotate it with __user. This fixes the following and similar sparse warnings: fs/binfmt_elf_fdpic.c:671:36: warning: incorrect type in argument 1 (different address spaces) fs/binfmt_elf_fdpic.c:671:36: expected char const *src fs/binfmt_elf_fdpic.c:671:36: got char [noderef] *[assigned] p fs/binfmt_elf_fdpic.c:683:36: warning: incorrect type in argument 1 (different address spaces) fs/binfmt_elf_fdpic.c:683:36: expected char const *src fs/binfmt_elf_fdpic.c:683:36: got char [noderef] *[assigned] p Signed-off-by: Lars-Peter Clausen Signed-off-by: Bob Liu --- Reading git-diff-tree failed