[aliang@Eadith g2d]$ make KDIR=~/source/Android/linux-2.6.36-android/
make --no-print-directory -C /home/aliang/source/Android/linux-2.6.36-android/ SUBDIRS=/home/aliang/source/openfimg/modules/g2d modules
CC [M] /home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.o
In file included from /home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c:46:0:
arch/arm/plat-samsung/include/plat/pm.h:104:39: warning: 'struct sys_device' declared inside parameter list
arch/arm/plat-samsung/include/plat/pm.h:104:39: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/plat-samsung/include/plat/pm.h:105:38: warning: 'struct sys_device' declared inside parameter list
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c: In function 's3c_g2d_open':
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c:783:2: <span style="color: #ff0000;">error: implicit declaration of function 'kmalloc'</span>
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c:783:6: warning: assignment makes pointer from integer without a cast
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c: In function 's3c_g2d_release':
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c:806:2: <span style="color: #ff0000;">error: implicit declaration of function 'kfree'</span>
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c: At top level:
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c:817:2: <span style="color: #ff0000;">error: unknown field 'ioctl' specified in initializer</span>
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c:817:2: warning: initialization from incompatible pointer type
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c: In function 's3c_g2d_probe':
/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.c:837:7: warning: assignment makes pointer from integer without a cast
make[2]: *** [/home/aliang/source/openfimg/modules/g2d/s3c_g2d_driver.o] 错误 1
make[1]: *** [_module_/home/aliang/source/openfimg/modules/g2d] 错误 2
make: *** [all] 错误 2