Re: kernel module spanning multiple files

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

 



Hi amit,

On Wed, Jun 15, 2011 at 3:29 PM, amit mehta <gmate.amit@xxxxxxxxx> wrote:
> Hi,
>
> static int __init hello_init(void)
> {
>        printk(KERN_WARNING "Hello world\n");
>        foo(); //defined in anther file

I removed the foo(); call

> [root@localhost #] cat Makefile
> obj-m += hello_multi.o
> hello_multi-objs := helper.o

I removed the "hello_multi-objs := helper.o" line

complied the module, changed all printk's to KERN_INFO and it shows up in dmesg

I think the problem is with the "hello_multi-objs := helper.o" line.
There is something wrong with it.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux