LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Module compilation in Linux - 2.6.17 (https://www.linuxquestions.org/questions/linux-kernel-70/module-compilation-in-linux-2-6-17-a-529564/)

asahlot 02-16-2007 05:12 AM

Module compilation in Linux - 2.6.17
 
Hi All
Is there any difference between module compilation procedure for Linux 2.6.9 and 2.6.17?

I compile my module for Linux 2.6.17 as below.
1. compile with -c option as we do in 2.6.9
2. run modpost utility
3. do final linking

In doing so module gets built with following warning messages.

test1.mod.c:1: warning: target CPU does not support interworking
test1.mod.c:9: warning: missing braces around initializer
test1.mod.c:9: warning: (near initialization for `__this_module.name')

Now when I insert this module,I dont get the print messages which I put in module init function.
Could anyone please help me out in this regard?


All times are GMT -5. The time now is 09:07 AM.