]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: Increase portability of strncpy_from_user() implementation.
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2012 02:56:06 +0000 (19:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2012 20:04:24 +0000 (13:04 -0700)
commit17be227909e9622bce35f81607f86979da182db7
tree46b29964dfbf21e6757b5ab629c6f748897d34e5
parent9ada736d71ac2d7a05b587174105309ae3a8961c
sparc: Increase portability of strncpy_from_user() implementation.

Hide details of maximum user address calculation in a new
asm/uaccess.h interface named user_addr_max().

Provide little-endian implementation in find_zero(), which should work
but can probably be improved.

Abstrace alignment check behind IS_UNALIGNED() macro.

Kill double-semicolon, noticed by David Howells.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/uaccess.h
arch/sparc/lib/usercopy.c