瀏覽代碼

[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 <vince@arm.linux.org.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Vincent Sanders 19 年之前
父節點
當前提交
58dd48a657
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/arm/boot/compressed/ofw-shark.c

+ 1 - 1
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];
 }