LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   About Kernel Modules in Linux (https://www.linuxquestions.org/questions/linux-software-2/about-kernel-modules-in-linux-731601/)

rajkumar278 06-09-2009 03:37 AM

About Kernel Modules in Linux
 
Hi all,

I am building the two kernel modules means 2 .ko files. Some functions of the module 1 are being used by module 2. I have also exported the symbols for functions which will be used by 2nd module. But When I am compiling the modules, i am getting the following errors:

WARNING: "A_UnRegister_Driver" [/usr/src/linux/drivers/usb/my/device/src/a.ko] undefined!
WARNING: "A_Free" [/usr/src/linux/drivers/usb/my/device/src/b.ko] undefined!

I am exporting the above function using the EXPORT_SYMBOL. Can some body point out why am i getting this and what is workaround for this?

regards.

TB0ne 06-09-2009 09:21 PM

Quote:

Originally Posted by rajkumar278 (Post 3567706)
Hi all,

I am building the two kernel modules means 2 .ko files. Some functions of the module 1 are being used by module 2. I have also exported the symbols for functions which will be used by 2nd module. But When I am compiling the modules, i am getting the following errors:

WARNING: "A_UnRegister_Driver" [/usr/src/linux/drivers/usb/my/device/src/a.ko] undefined!
WARNING: "A_Free" [/usr/src/linux/drivers/usb/my/device/src/b.ko] undefined!

I am exporting the above function using the EXPORT_SYMBOL. Can some body point out why am i getting this and what is workaround for this?

regards.

Don't know how anyone but you can diagnose this problem. You don't say what modules you're trying to compile, on what version/distro of Linux. We can't guess as to what you're doing.......so post useful information.


All times are GMT -5. The time now is 07:20 PM.