[G Tablet Android Development] MA700C:
compilation issues

pershoot,

I grabbed your code from https://github.com/pershoot/gtab-2632/commit/c7ba24f773539dc986b0a0b532e83d1272fd66b4 and am trying to compile it. My whole purpose is to play with the bcm4329 driver. I get several compilation errors and was hoping you could have me resolve them. The errors I get are as follows:

CC [M] drivers/net/wireless/bcm4329/dhd_linux.o
In file included from drivers/net/wireless/bcm4329/dhd_linux.c:56:
drivers/net/wireless/bcm4329/dhd.h:306: warning: 'struct sched_param' declared inside parameter list
drivers/net/wireless/bcm4329/dhd.h:306: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/net/wireless/bcm4329/dhd_linux.c: In function 'dhd_watchdog_thread':
drivers/net/wireless/bcm4329/dhd_linux.c:1393: warning: passing argument 3 of 'setScheduler' from incompatible pointer type
drivers/net/wireless/bcm4329/dhd.h:306: note: expected 'struct sched_param *' but argument is of type 'struct sched_param *'
drivers/net/wireless/bcm4329/dhd_linux.c: In function 'dhd_dpc_thread':
drivers/net/wireless/bcm4329/dhd_linux.c:1468: warning: passing argument 3 of 'setScheduler' from incompatible pointer type
drivers/net/wireless/bcm4329/dhd.h:306: note: expected 'struct sched_param *' but argument is of type 'struct sched_param *'
drivers/net/wireless/bcm4329/dhd_linux.c: In function 'dhd_open':
drivers/net/wireless/bcm4329/dhd_linux.c:1907: warning: array subscript is below array bounds
CC [M] drivers/net/wireless/bcm4329/linux_osl.o
CC [M] drivers/net/wireless/bcm4329/bcmutils.o
CC [M] drivers/net/wireless/bcm4329/dhd_common.o
In file included from drivers/net/wireless/bcm4329/dhd_common.c:34:
drivers/net/wireless/bcm4329/dhd.h:306: warning: 'struct sched_param' declared inside parameter list
drivers/net/wireless/bcm4329/dhd.h:306: warning: its scope is only this definition or declaration, which is probably not what you want
CC [M] drivers/net/wireless/bcm4329/dhd_custom_gpio.o
In file included from drivers/net/wireless/bcm4329/dhd_custom_gpio.c:33:
drivers/net/wireless/bcm4329/dhd.h:306: warning: 'struct sched_param' declared inside parameter list
drivers/net/wireless/bcm4329/dhd.h:306: warning: its scope is only this definition or declaration, which is probably not what you want
CC [M] drivers/net/wireless/bcm4329/siutils.o
CC [M] drivers/net/wireless/bcm4329/sbutils.o
CC [M] drivers/net/wireless/bcm4329/aiutils.o
CC [M] drivers/net/wireless/bcm4329/hndpmu.o
CC [M] drivers/net/wireless/bcm4329/dhd_linux_sched.o
CC [M] drivers/net/wireless/bcm4329/bcmwifi.o
CC [M] drivers/net/wireless/bcm4329/wl_iw.o
In file included from drivers/net/wireless/bcm4329/wl_iw.c:40:
drivers/net/wireless/bcm4329/dhd.h:306: warning: 'struct sched_param' declared inside parameter list
drivers/net/wireless/bcm4329/dhd.h:306: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/net/wireless/bcm4329/wl_iw.c: In function '_iscan_sysioc_thread':
drivers/net/wireless/bcm4329/wl_iw.c:2980: error: implicit declaration of function 'daemonize'
drivers/net/wireless/bcm4329/wl_iw.c:2980: error: implicit declaration of function 'allow_signal'
drivers/net/wireless/bcm4329/wl_iw.c:2980: error: 'SIGKILL' undeclared (first use in this function)
drivers/net/wireless/bcm4329/wl_iw.c:2980: error: (Each undeclared identifier is reported only once
drivers/net/wireless/bcm4329/wl_iw.c:2980: error: for each function it appears in.)
drivers/net/wireless/bcm4329/wl_iw.c:2980: error: 'SIGTERM' undeclared (first use in this function)
drivers/net/wireless/bcm4329/wl_iw.c: In function 'thr_wait_for_2nd_eth_dev':
drivers/net/wireless/bcm4329/wl_iw.c:6066: error: 'SIGKILL' undeclared (first use in this function)
drivers/net/wireless/bcm4329/wl_iw.c:6066: error: 'SIGTERM' undeclared (first use in this function)
drivers/net/wireless/bcm4329/wl_iw.c: In function '_bt_dhcp_sysioc_thread':
drivers/net/wireless/bcm4329/wl_iw.c:8070: error: 'SIGKILL' undeclared (first use in this function)
drivers/net/wireless/bcm4329/wl_iw.c:8070: error: 'SIGTERM' undeclared (first use in this function)
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_bt_release':
drivers/net/wireless/bcm4329/wl_iw.c:8150: error: implicit declaration of function 'send_sig'
drivers/net/wireless/bcm4329/wl_iw.c:8150: error: 'SIGTERM' undeclared (first use in this function)
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_detach':
drivers/net/wireless/bcm4329/wl_iw.c:8275: error: 'SIGTERM' undeclared (first use in this function)
make[4]: *** [drivers/net/wireless/bcm4329/wl_iw.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4329] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2

What toolchain did you use when you build the project and what was the syntax of your "make" command?

I was able to stick the bcm4329 folder from this source tree into what I think is the original G-Tablet tree it compiled without error once I updated the appropriate makefile and kconfig files. That source doesn't match what I currently have loaded on my G-Tablet and so the bcm4329.ko file fails to load. Your source tree is much closer to what I have, so I wanted to try the bcm4329 built through yours.

Any help you can give would be greatly appreciated.