]> err.no Git - linux-2.6/commit
[PATCH] fix ia64 compile failure with gcc4.1
authorDave Jones <davej@redhat.com>
Thu, 29 Dec 2005 01:01:04 +0000 (20:01 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 29 Dec 2005 18:19:21 +0000 (10:19 -0800)
commitee025949586f80effa634ff273c2444795472780
tree60c4216cbd0cf05ab30c8c11c6132506a1cff457
parent63b44442416a243f05881b0dd094b621a46ab4b3
[PATCH] fix ia64 compile failure with gcc4.1

__get_unaligned creates a typeof the var its passed, and writes to it,
which on gcc4.1, spits out the following error:

drivers/char/vc_screen.c: In function 'vcs_write':
drivers/char/vc_screen.c:422: error: assignment of read-only variable 'val'

Signed-off-by: Dave Jones <davej@redhat.com>
[ The "right" fix would be to try to fix <asm-generic/unaligned.h>
  but that's hard to do with the tools gcc gives us. So this
  simpler patch is preferable -- Linus ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/vc_screen.c