]> err.no Git - linux-2.6/commit
[PATCH] __get_unaligned() gcc-4 fix
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 8 Mar 2006 05:55:28 +0000 (21:55 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 8 Mar 2006 22:14:00 +0000 (14:14 -0800)
commit707ced0d718e89b52b13aa55a64653083e792cca
tree3b3276325c3ad5a1de5205971ae6367eb890a426
parent81c29a857d3c8d6ea9c4f20d196c36bf0a07c615
[PATCH] __get_unaligned() gcc-4 fix

If the 'ptr' is a const, this code cause "assignment of read-only variable"
error on gcc 4.x.

Use __u64 instead of __typeof__(*(ptr)) for temporary variable to get
rid of errors on gcc 4.x.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/unaligned.h