Re: assembly code in the loadable kernel module

From: linux-os \(Dick Johnson\)
Date: Fri Apr 27 2007 - 07:28:18 EST

On Fri, 27 Apr 2007, Parav K Pandit wrote:

> 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.
> 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

Just name the source module3.S
^______ not .s

Dick Johnson
Penguin : Linux version on an i686 machine (5592.62 BogoMips).
New book:

The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@xxxxxxxxxxxx - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at