Compiler WARNING when using exported functions ?

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

 



I have two modules (A and B).

Modules A calls functions that B exports. 

EXPORT_SYMBOL( modb_func );

This works well.

The issue is that when module A get compiled I get compiler warnings:
  CC [M] /mycode/mod_a.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "modb_func" [/mycode/mod_a.ko] undefined!

When I load modules B then A, everything works OK.

I know it's a minor problem but is there a way to get rid of the
compiler warning ?
Why don't I also get a warning for kernel functions like printk() ?

Thanks
dom

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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