[Armadillo:05040] Re: 開発環境「 linux-2.6.12.3-a9-7 」「 atmark-dist-20060908 」のビルドについて
Yasushi SHOJI
email@hidden
2010年 3月 23日 (火) 15:50:37 JST
At Tue, 23 Mar 2010 09:33:07 +0900 (JST),
yoshi independence wrote:
[...]
> CC arch/arm/mm/alignment.o
> In file included from include/asm/proc-fns.h:154,
> from include/asm/system.h:95,
> from include/asm/bitops.h:22,
> from include/linux/bitops.h:77,
> from include/linux/kernel.h:15,
> from arch/arm/mm/alignment.c:16:
> include/asm/cpu-single.h:44: warning: type qualifiers
> ignored on function return type
> arch/arm/mm/alignment.c: In function ‘proc_alignment_write’:
> arch/arm/mm/alignment.c:116: error: read-only variable ‘__r2’ used as ‘asm’ output
> arch/arm/mm/alignment.c:116: error: read-only variable ‘__r2’ used as ‘asm’ output
> arch/arm/mm/alignment.c:116: error: read-only variable ‘__r2’ used as ‘asm’ output
> arch/arm/mm/alignment.c:116: error: read-only variable ‘__r2’ used as ‘asm’ output
> make[2]: *** [arch/arm/mm/alignment.o] エラー 1
> make[1]: *** [arch/arm/mm] エラー 2
> make[1]: ディレクトリ
> `/home/atmark/linux-2.6.12.3-a9-7-vpn-cam'
> から出ます
> make: *** [linux] エラー 1
こんな感じで直りますか?
--- linux-2.6.12.3-a9-6/include/asm-arm/uaccess.h 2005-07-16 06:18:57.000000000 +0900
+++ linux-2.6.12.3-a9-17/include/asm-arm/uaccess.h 2009-03-06 19:53:28.000000000 +0900
@@ -120,7 +120,7 @@
#define get_user(x,p) \
({ \
const register typeof(*(p)) __user *__p asm("r0") = (p);\
- register typeof(*(p)) __r2 asm("r2"); \
+ register unsigned long __r2 asm("r2"); \
register int __e asm("r0"); \
switch (sizeof(*(__p))) { \
case 1: \
@@ -132,12 +132,9 @@
case 4: \
__get_user_x(__r2, __p, __e, 4, "lr"); \
break; \
- case 8: \
- __get_user_x(__r2, __p, __e, 8, "lr"); \
- break; \
default: __e = __get_user_bad(); break; \
} \
- x = __r2; \
+ x = (typeof(*(p))) __r2; \
__e; \
})
または、こちらで:
http://git.kernel.org/linus/d2c5b69099ff747f9757da2416383b9a999171b1
--
yashi
armadillo メーリングリストの案内