From: Vincent Sanders Date: Tue, 20 Sep 2005 15:21:42 +0000 (+0100) Subject: [ARM] 2922/1: compile fix for shark X-Git-Tag: v2.6.14-rc3~128^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=58dd48a6575d3ba86ba659eb8c6fc23246783fba;p=linux-2.6-omap-h63xx.git [ARM] 2922/1: compile fix for shark Patch from Vincent Sanders Shark platform fails to build with gcc 4 because of a bad lvalue assignement Signed-off-by: Vincent Sanders Signed-off-by: Russell King --- diff --git a/arch/arm/boot/compressed/ofw-shark.c b/arch/arm/boot/compressed/ofw-shark.c index 7f6f5db0d06..465c54b6b12 100644 --- a/arch/arm/boot/compressed/ofw-shark.c +++ b/arch/arm/boot/compressed/ofw-shark.c @@ -256,5 +256,5 @@ asmlinkage void ofw_init(ofw_handle_t o, int *nomr, int *pointer) temp[11]='\0'; mem_len = OF_getproplen(o,phandle, temp); OF_getprop(o,phandle, temp, buffer, mem_len); - (unsigned char) pointer[32] = ((unsigned char *) buffer)[mem_len-2]; + * ((unsigned char *) &pointer[32]) = ((unsigned char *) buffer)[mem_len-2]; }