assembly code in the loadable kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have written one function in assembly for my kernel module.
Function is in module3.s file.
I have added the module3.o file in the object list in the Makefile.
But it shows compile time warning and following output.

What do I need to do to compile assembly code in my kernel module.

CC [M]  /home/parav/cache_improve/test_module/module1.o
CC [M]  /home/parav/cache_improve/test_module/module2.o
as -a32 -o /home/parav/cache_improve/test_module/module3.o
/home/parav/cache_improve/test_module/module3.s
LD [M]  /home/parav/cache_improve/test_module/sdk3_module.o
Building modules, stage 2.
MODPOST
Warning: could not find /home/parav/cache_improve/test_module/.module3.o.cmd
for /home/parav/cache_improve/test_module/module3.o
*** Warning: "test_func"
[/home/parav/cache_improve/test_module/sdk3_module.ko] undefined!
*** Warning: "" [/home/parav/cache_improve/test_module/sdk3_module.ko]
undefined!

I expect CC[M] kind of command for the module3.o file also so that
.module3.o.cmd file gets generated.

Regards,
Parav Pandit



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux