diff options
author | Dave Jones <davej@redhat.com> | 2005-12-28 20:01:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-29 13:19:21 -0500 |
commit | ee025949586f80effa634ff273c2444795472780 (patch) | |
tree | 60c4216cbd0cf05ab30c8c11c6132506a1cff457 /drivers/char | |
parent | 63b44442416a243f05881b0dd094b621a46ab4b3 (diff) |
[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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/vc_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c index f66c7ad6fd38..3c1dafaa3441 100644 --- a/drivers/char/vc_screen.c +++ b/drivers/char/vc_screen.c | |||
@@ -419,7 +419,7 @@ vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) | |||
419 | while (this_round > 1) { | 419 | while (this_round > 1) { |
420 | unsigned short w; | 420 | unsigned short w; |
421 | 421 | ||
422 | w = get_unaligned(((const unsigned short *)con_buf0)); | 422 | w = get_unaligned(((unsigned short *)con_buf0)); |
423 | vcs_scr_writew(vc, w, org++); | 423 | vcs_scr_writew(vc, w, org++); |
424 | con_buf0 += 2; | 424 | con_buf0 += 2; |
425 | this_round -= 2; | 425 | this_round -= 2; |