Skip to contentSkip to conversation

drivers/staging/rt2860 doesn't compile

DISCUSSION Andrey Rahmatullin 3 participants 6 messages Oct 14, 2009 – Oct 20, 2009

lore
Share & tools
lore
#0 lore raw

drivers/staging/rt2860/common/cmm_info.c: In function 'RTMPIoctlGetSiteSurvey':
drivers/staging/rt2860/common/cmm_info.c:1817: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function) drivers/staging/rt2860/common/cmm_info.c:1817: error: (Each undeclared identifier is reported only once drivers/staging/rt2860/common/cmm_info.c:1817: error: for each function it appears in.)
drivers/staging/rt2860/common/cmm_info.c:1817: error: implicit declaration of function 'signal_pending' drivers/staging/rt2860/common/cmm_info.c:1817: error: implicit declaration of function 'schedule_timeout'

drivers/staging/rt2860/rt_linux.h doesn't include <linux/sched.h>. It includes <linux/interrupt.h>, which included <linux/sched.h> until d43c36dc6b357fa1806800f18aa30123c747a6d1

Signature · 1 line
WBR, wRAR (ALT Linux Team)
#1 lore raw

Even after trivial fix (including <linux/sched.h> into drivers/staging/rt2860/rt_linux.h) the driver doesn't compile:

drivers/staging/rt2860/rt_main_dev.c: In function 'rt_ieee80211_if_setup':
drivers/staging/rt2860/rt_main_dev.c:691: error: 'struct net_device' has no member named 'wireless_handlers'

Signature · 1 line
WBR, wRAR (ALT Linux Team)
#2 lore raw
Quoted 6 lines · Andrey Rahmatullin

Even after trivial fix (including <linux/sched.h> into drivers/staging/rt2860/rt_linux.h) the driver doesn't compile:

drivers/staging/rt2860/rt_main_dev.c: In function 'rt_ieee80211_if_setup':
drivers/staging/rt2860/rt_main_dev.c:691: error: 'struct net_device' has no member named 'wireless_handlers'

This is already fixed in my tree.

thanks,

greg k-h

#3 lore raw
In reply to Andrey Rahmatullin
Quoted 6 lines · Andrey Rahmatullin

Even after trivial fix (including <linux/sched.h> into drivers/staging/rt2860/rt_linux.h) the driver doesn't compile:

drivers/staging/rt2860/rt_main_dev.c: In function 'rt_ieee80211_if_setup':
drivers/staging/rt2860/rt_main_dev.c:691: error: 'struct net_device' has no member named 'wireless_handlers'

For the archives: it just means that CONFIG_WIRELESS_EXT should be enabled.

Signature · 1 line
WBR, wRAR (ALT Linux Team)
#4 lore raw
Quoted 2 lines

For the archives: it just means that CONFIG_WIRELESS_EXT should be enabled.

Which means the driver should probably do "select WIRELESS_EXT" in Kconfig. Would be an easy patch to send if you can test it....

#5 lore raw
Quoted 3 lines · Roland Dreier
Quoted 1 line

For the archives: it just means that CONFIG_WIRELESS_EXT should be enabled.

Which means the driver should probably do "select WIRELESS_EXT" in Kconfig.

Yes.

Quoted 1 line

Would be an easy patch to send if you can test it....

Of course I can :)

Signature · 1 line
WBR, wRAR (ALT Linux Team)