Re: Module stacking & warnings

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

 



How do you know MY_SYMBOL is exported correctly?

Have you tried explicitly exporting (EXPORT_SYMBOL(MY_SYMBOL)) in your code to get rid of the warning during make? If you can get rid of the error during make, you will be able to insmod the module.

Dinesh

Benedict, Michael wrote:
I am trying to implement module stacking for my embedded target.
Everything seems to work fine with no errors, but there are
disconcerting warnings in modpost and insmod.

1) Building a module that accesses exported symbols - I get an warning
for every symbol like:
WARNING: "<MY_SYMBOL>" [<kernel module>.ko] undefined!

I saw a similar issue pop up here almost two years ago:
http://mail.nl.linux.org/kernelnewbies/2006-01/msg00459.html
But it seems like no one had the answer.

2) Insmoding the module that accesses exported symbols - I get a warning
for the first symbol:
<kernel module>: no version for "<MY_SYMBOL>" found: kernel tainted.

I have not been so lucky in finding an answer to the second.  Note that
I am building against the same running kernel... I think this is a
distinct issue from 'no version for "struct_module"'.  Any pointers
would be greatly appreciated.
	Thank you,
		Michael


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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