rpms/kernel/devel linux-2.6-gcc41.patch,1.1,1.2

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Dec 7 04:22:44 UTC 2005


Author: davej

Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv3585

Modified Files:
	linux-2.6-gcc41.patch 
Log Message:
build failure #1


linux-2.6-gcc41.patch:
 drivers/char/vc_screen.c      |    2 +-
 include/asm-i386/mpspec_def.h |    2 +-
 include/asm-x86_64/mpspec.h   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6-gcc41.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/linux-2.6-gcc41.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- linux-2.6-gcc41.patch	7 Dec 2005 04:09:20 -0000	1.1
+++ linux-2.6-gcc41.patch	7 Dec 2005 04:22:40 -0000	1.2
@@ -23,3 +23,23 @@
  };
  
  /* List of Bus Type string values, Intel MP Spec. */
+
+__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 at 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;




More information about the fedora-cvs-commits mailing list