* fix ia64 compile failure with gcc4.1
@ 2005-12-29 1:01 Dave Jones
0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2005-12-29 1:01 UTC (permalink / raw)
To: Linux Kernel; +Cc: torvalds
__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>
--- linux-2.6.14/drivers/char/vc_screen.c~ 2005-12-06 23:20:03.000000000 -0500
+++ linux-2.6.14/drivers/char/vc_screen.c 2005-12-06 23:21:35.000000000 -0500
@@ -419,7 +419,7 @@ vcs_write(struct file *file, const char
while (this_round > 1) {
unsigned short w;
- w = get_unaligned(((const unsigned short *)con_buf0));
+ w = get_unaligned(((unsigned short *)con_buf0));
vcs_scr_writew(vc, w, org++);
con_buf0 += 2;
this_round -= 2;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-29 1:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-29 1:01 fix ia64 compile failure with gcc4.1 Dave Jones
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.