<div dir="ltr"><div><div><div>Hi All,<br><br></div>I am trying to compile simple kernel module. It gives following error. Same module compiles succesfully on another 64 bit ubuntu OS.Any idea what different in environment can cause this. Both machine are ubuntu 12.04. On 32 ubuntu bit compilation fails.<br><br>In file included from /home/aricent/try5/eudy_misc_driver.c:7:0:<br>include/asm-generic/uaccess.h:41:0: warning: &quot;access_ok&quot; redefined [enabled by default]<br> #define access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size))<br> ^<br>In file included from /usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/sections.h:5:0,<br>                 from /usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hw_irq.h:26,<br>                 from include/linux/irq.h:368,<br>                 from /usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hardirq.h:5,<br>                 from include/linux/preempt_mask.h:5,<br>                 from include/linux/sched.h:25,<br>                 from include/asm-generic/uaccess.h:9,<br>                 from /home/aricent/try5/eudy_misc_driver.c:7:<br>/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/uaccess.h:80:0: note: this is the location of the previous definition<br> #define access_ok(type, addr, size) \<br><br>In file included from /home/aricent/try5/eudy_misc_driver.c:7:0:<br>include/asm-generic/uaccess.h:337:1: error: static declaration of ‘clear_user’ follows non-static declaration<br> clear_user(void __user *to, unsigned long n)<br> ^<br>In file included from /usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/sections.h:5:0,<br>                 from /usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hw_irq.h:26,<br>                 from include/linux/irq.h:368,<br>                 from /usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hardirq.h:5,<br>                 from include/linux/preempt_mask.h:5,<br>                 from include/linux/sched.h:25,<br>                 from include/asm-generic/uaccess.h:9,<br>                 from /home/aricent/try5/eudy_misc_driver.c:7:<br>/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/uaccess.h:525:28: note: previous declaration of ‘clear_user’ was here<br> unsigned long __must_check clear_user(void __user *mem, unsigned long len);<br><br><br><br></div>Regards<br></div>Harsh Jain<br><div><div> <br></div></div></div>