From: Mikulas Patocka Date: Thu, 23 Jan 2014 19:41:09 +0000 (-0500) Subject: mach64: use unaligned access X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c29dd8696dc5dbd50b3ac441b8a26751277ba520;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mach64: use unaligned access This patch fixes mach64 to use unaligned access to the font bitmap. This fixes unaligned access warning on sparc64 when 14x8 font is loaded. On x86(64), unaligned access is handled in hardware, so both functions le32_to_cpup and get_unaligned_le32 perform the same operation. On RISC machines, unaligned access is not handled in hardware, so we better use get_unaligned_le32 to avoid the unaligned trap and warning. Signed-off-by: Mikulas Patocka Cc: stable@vger.kernel.org Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/aty/mach64_accel.c b/drivers/video/aty/mach64_accel.c index e45833ce975b..182bd680141f 100644 --- a/drivers/video/aty/mach64_accel.c +++ b/drivers/video/aty/mach64_accel.c @@ -4,6 +4,7 @@ */ #include +#include #include #include