From: Vineet Gupta Date: Fri, 18 Jan 2013 09:42:16 +0000 (+0530) Subject: asm-generic: uaccess: Allow arches to over-ride __{get,put}_user_fn() X-Git-Tag: v3.9-rc1~25^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05d88a493746819821733e07bed918a6e09f735b;p=pandora-kernel.git asm-generic: uaccess: Allow arches to over-ride __{get,put}_user_fn() As of now these default to calling the arch provided __copy_{to,from}_user() routines which being general purpose (w.r.t buffer alignment and lengths) would lead to alignment checks in generated code (for arches which don't support unaligned load/stores). Given that in this case we already know that data involved is "unit" sized and aligned, using the vanilla copy backend is a bit wasteful. This change thus allows arches to over-ride the aforementioned routines. Signed-off-by: Vineet Gupta Acked-by: Arnd Bergmann --- Reading git-diff-tree failed