LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-09-2008, 01:31 AM   #1
nayankumarp
LQ Newbie
 
Registered: May 2008
Posts: 5

Rep: Reputation: 0
no version for "function x" found: kernel tainted Options


Hi All,
I am using two Dual BSD/GPL drivers for a stack development project.
Both modules use the MODULE_LICENSE("Dual BSD/GPL "). One of the
drivers depends on the other. When the modules gets loaded after
issuing insmod command , I see a tainted message in the kernel output
from the module that is calling the (function x) exported by other
module that a exported (function x ) has no version.

How do I fix this? - there is a requirement that no tainted messages
appear.


Thanks
 
Old 05-09-2008, 02:09 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
State exact "tainted" message - modutils is supposed to add the MODULE_LICENSE() string.

Quote:
MODULE_LICENSE("Dual BSD/GPL ")
Is this a cut-and-paste? Try:

MODULE_LICENSE("Dual BSD/GPL")

Check how this macro is handled in the source.
But I suspect this is one for kerneltrap.

http://www.kerneltraffic.org/kernel-...11029_139.html
... clarification for completeness - you may know this, but others may not.
 
Old 05-09-2008, 03:07 AM   #3
nayankumarp
LQ Newbie
 
Registered: May 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your help

exact "tainted" message are as follows.

sdhost: no version for "unregister_sd_host_device" found: kernel tainted.

unregister_sd_host_device has been defined in bus module and from there i am exporting this function by using export symbol.

i am calling this function from sdhost module as far as calling unregister_sd_host_device is concern its getting called properly no issue with that .

But why kernel tainted message is coming i am not able to understand.

Hope this will help you to visualize the problem that i am facing.

Regards
 
Old 05-09-2008, 06:04 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
sdhost: no version for "unregister_sd_host_device" found: kernel tainted.

That's not the same... if the tainted message came from either the (unnamed) driver's MODULE_LICENSE() then it would read: sdhost: module license 'Dual BSD/GPL'taints kernel. Which doesn't happen.

You get:

sdhost: no version for "unregister_sd_host_device" found: kernel tainted.

Is there another message about, say, "version magic" close by? Any other "sdhost" messages? (This sort of thing is usually explained right after.)

What's happening is probably something like this:

When sdhost was built, it didn't find anything it could pull symbol version info from.
So symbol version info in sdhost was set to unknown. This module loaded to
kernel, but since it had unknown symbol version info in some of its symbols,
module loading code said "dunno if this works, all bets off", and tainted the
kernel.

Go over your compile instructions and linking carefully - and make sure of the kernel configuration. I take it you have loaded this module to a pre-compiled kernel?

What does:
modinfo sdhost.ko

http://tldp.org/LDP/lkmpg/2.6/html/x380.html


You've been sending out feelers...
http://linux.derkeiler.com/Newsgroup.../msg00023.html
http://fixunix.com/embedded/334768-w...d-message.html
... appended for completeness. Make sure you tell fixunix the full message too, they will probably be able to be more specific.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
no version for "function x" found: kernel tainted nayankumarp Programming 2 05-09-2008 06:53 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
"kernel tainted" log message - what does it mean? Robhogg Linux - Newbie 5 12-09-2005 03:32 PM
recording function in kaffeine - more of a "disfunction" in newer version? ungua Linux - Software 0 10-22-2005 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration