Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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>

authored by

Dave Jones and committed by
Linus Torvalds
ee025949 63b44442

+1 -1
+1 -1
drivers/char/vc_screen.c
··· 419 419 while (this_round > 1) { 420 420 unsigned short w; 421 421 422 - w = get_unaligned(((const unsigned short *)con_buf0)); 422 + w = get_unaligned(((unsigned short *)con_buf0)); 423 423 vcs_scr_writew(vc, w, org++); 424 424 con_buf0 += 2; 425 425 this_round -= 2;