lib: introduce strncpy_from_unsafe()
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 28 Aug 2015 22:56:22 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 23:27:27 +0000 (16:27 -0700)
commit1a6877b9c0c2ad901d4335d909432d3bb6d3a330
tree25b3a1577a82199d1100834c1bbf6cefad34a5a7
parentc9fd56b34efd06a031cbc918d288f09e38173ff9
lib: introduce strncpy_from_unsafe()

generalize FETCH_FUNC_NAME(memory, string) into
strncpy_from_unsafe() and fix sparse warnings that were
present in original implementation.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/uaccess.h
kernel/trace/trace_kprobe.c
lib/strncpy_from_user.c