From: John Williams Date: Tue, 24 Mar 2009 01:10:00 +0000 (+1000) Subject: microblaze: Don't use access_ok for unaligned X-Git-Tag: firefly_0821_release~13950^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3447ef29a7f3b1fd0d8d58376950e695e04f6f8b;p=firefly-linux-kernel-4.4.55.git microblaze: Don't use access_ok for unaligned it assumes we have an unaligned exception handler which (a) may not be true (b) costs a lot of performance Instead we'll use struct/union method for big endian accesses, and byte-shifting for little endian. Signed-off-by: John Williams --- diff --git a/arch/microblaze/include/asm/unaligned.h b/arch/microblaze/include/asm/unaligned.h index 9d66b640c910..3658d91ac0fb 100644 --- a/arch/microblaze/include/asm/unaligned.h +++ b/arch/microblaze/include/asm/unaligned.h @@ -12,7 +12,8 @@ # ifdef __KERNEL__ -# include +# include +# include # include # define get_unaligned __get_unaligned_be