Skip to contentSkip to conversation

fix ia64 compile failure with gcc4.1

PATCH Dave Jones 1 participant 1 message Dec 29, 2005 Char and misc drivers

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

__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'

drivers/char/vc_screen.c renamed from drivers/char/vc_screen.c~ +1 -1
@@ -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;