[root@localhost read_write]# ./build.sh 

 1:Ubuntu Linux 

 2:S3C6410开发板 

 3:Android模拟器 

 请选择要在那类设备上运行(1)3 

 make: Entering directory `/home/shikun/android-git/goldfish' 

   CC [M]  /root/drivers/ch06/word_count/read_write/word_count.o 

 /root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_write': 

 /root/drivers/ch06/word_count/read_write/word_count.c:39:16: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result] 

 /root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_read': 

 /root/drivers/ch06/word_count/read_write/word_count.c:22:15: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result] 

   Building modules, stage 2. 

   MODPOST 1 modules 

 WARNING: "misc_deregister" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined! 

 WARNING: "misc_register" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined! 

 WARNING: "__copy_to_user" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined! 

 WARNING: "printk" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined! 

 WARNING: "__memzero" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined! 

 WARNING: "__copy_from_user" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined! 

   CC      /root/drivers/ch06/word_count/read_write/word_count.mod.o 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:9:2: error: unknown field 'name' specified in initializer 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:9:2: warning: excess elements in struct initializer [enabled by default] 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:9:2: warning: (near initialization for '__this_module') [enabled by default] 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:10:2: error: unknown field 'init' specified in initializer 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:10:2: warning: excess elements in struct initializer [enabled by default] 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:10:2: warning: (near initialization for '__this_module') [enabled by default] 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:14:2: error: unknown field 'arch' specified in initializer 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function) 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:14:2: warning: excess elements in struct initializer [enabled by default] 

 /root/drivers/ch06/word_count/read_write/word_count.mod.c:14:2: warning: (near initialization for '__this_module') [enabled by default] 

 make[1]: *** [/root/drivers/ch06/word_count/read_write/word_count.mod.o] Error 1 

 make: *** [modules] Error 2 

 make: Leaving directory `/home/shikun/android-git/goldfish' 

 exit after make! 

 [root@localhost read_write]# ./build.sh 

 1:Ubuntu Linux 

 2:S3C6410开发板 

 3:Android模拟器 

 请选择要在那类设备上运行(1)3 

 make: Entering directory `/home/shikun/android-git/goldfish' 

   CC [M]  /root/drivers/ch06/word_count/read_write/word_count.o 

 /root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_write': 

 /root/drivers/ch06/word_count/read_write/word_count.c:39:16: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result] 

 /root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_read': 

 /root/drivers/ch06/word_count/read_write/word_count.c:22:15: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result] 

   Building modules, stage 2. 

   MODPOST 1 modules 

   CC      /root/drivers/ch06/word_count/read_write/word_count.mod.o 

   LD [M]  /root/drivers/ch06/word_count/read_write/word_count.ko 

 make: Leaving directory `/home/shikun/android-git/goldfish' 

 exit after make! 

 [root@localhost read_write]#