drivers/mfd/tc35892.c:197:3: error: implicit declaration of function ‘set_irq_noprobe’ you need to extern the function or include the *.h file .
------------------ 原始邮件 ------------------ 发件人: "Amit kumar Bag"; 发送时间: 2012年2月7日(星期二) 晚上6:14 收件人: "android-kernel"; 主题: Re: [android-kernel] Kernel compilation error I am using gcc version? gcc (GCC) 4.5.1. On 7 February 2012 02:09, Jeremy Morales <ajaxx20...@gmail.com> wrote: What version of of gcc are you using? On Sun, Feb 5, 2012 at 11:09 PM, Amit kumar Bag <amitkumar...@gmail.com> wrote: Hi All, I am tring to build android gingerbread kernel for snowball board. I followed the below step to compile. 1.make menuconfig? for enabling the module in the kernel. 2. export CROSS_COMPILE=<path>android-toolchain-eabi/bin (path of the binary located in my machine) 3.. make But I got one error after make as below. drivers/mfd/tc35892.c: In function ‘tc35892_irq_init’: drivers/mfd/tc35892.c:197:3: error: implicit declaration of function ‘set_irq_noprobe’ make[2]: *** [drivers/mfd/tc35892.o] Error 1 make[1]: *** [drivers/mfd] Error 2 make: *** [drivers] Error 2 In the file tc35892.c the macro #ifdef CONFIG_ARM is not set so control goes to else part and give the error set_irq_noprobe is not define. May be if the macro CONFIG_ARM is set then the error can be removed. Can anyone tell me how to set the macro to remove the error. Thanks, Amit Bag -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel