LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Undefined Variables During MODPOST (https://www.linuxquestions.org/questions/linux-kernel-70/undefined-variables-during-modpost-4175442217/)

dsb9938 12-19-2012 05:02 PM

Undefined Variables During MODPOST
 
I am building a kernel for an android phone. I transplanted an updated version of the WiFi code from Broadcomm.

Doing this involved adjusting Kconfigs and Makefiles to point to the files I added and I got the code to build properly without warning or error.

Until I get to the MODPOST part. Then I get these errors:

ERROR: "wl_iw_handler_def" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_event" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_detach" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_get_wireless_stats" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!
ERROR: "wl_iw_ioctl" [drivers/net/wireless/bcmdhd/dhd.ko] undefined!

I am not sure where/how to correct these as I have never seen an error like this. I am used to being given a file and line location for what needs to be fixed.

I read that this may have to do with exporting them, but I still don't know where or how to do that, and I wonder why that would not already be in the code if it were the culprit.

Any input on where to look for what is causing this would be greatly appreciated.

D

.

nini09 12-21-2012 02:39 PM

You can check WiFi driver makefile to make sure the compiler option match with your kernel.

m00gle 03-14-2013 10:35 AM

I've got the same question. I checked the driver makefile and the option look the same. How did you solve the error ?

dsb9938 03-14-2013 01:04 PM

I reverted my changes. Never found a solution that allowed me to keep the new files.

m0tter 09-17-2013 08:05 PM

Just thought I'd post my solution in case anyone else comes across this problem.

This fix solves the error, I can't guarantee it'll compile a complete driver just yet as my kernel has other problems.

Add wl_iw.o to DHDOFILES in bcmdhd/Makefile

Add
Code:

#define USE_IW
to bcmdhd/wl_iw.c above
Code:

#if defined(USE_IW)

m0tter


All times are GMT -5. The time now is 07:42 AM.