Skip to contentSkip to conversation

Building current snapshot against kernel 2.6.38 (kfree_rcu problem)

DISCUSSION Tony Houghton 1 participant 1 message May 7, 2011

lore
Share & tools
lore
#0 lore raw

I haven't heard any news about the ath9k bug that's been plaguing me so I thought I'd try doing some debugging myself by adding printk messages to shutdown functions. The trouble is the current snapshot (2011-05-05) won't build against Debian's 2.6.38 kernel:

/home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c: In function ‘___ieee80211_stop_tx_ba_session’:
/home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c:158: error: implicit declaration of function ‘kfree_rcu’ /home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c:158: error: ‘rcu_head’ undeclared (first use in this function) /home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c:158: error: (Each undeclared identifier is reported only once /home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c:158: error: for each function it appears in.) /home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c: In function ‘ieee80211_tx_ba_session_handle_start’:
/home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c:317: error: ‘rcu_head’ undeclared (first use in this function) /home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c: In function ‘ieee80211_stop_tx_ba_cb’:
/home/tony/compat-wireless-2011-05-05/net/mac80211/agg-tx.c:696: error: ‘rcu_head’ undeclared (first use in this function)

I think the errors about rcu_head are actually caused by the lack of a definition for kfree_rcu. I Googled it and AFAICT kfree_rcu was only introduced this March. But compat-wireless is supposed to work with all 2.6 kernels isn't it, so why is it using such a new feature? Have I just caught a "bad" snapshot before an alternative for kfree_rcu was added for older kernels?

I'd prefer to build against 2.6.38 if possible because compiling a 2.6.39-rc will take hours and then cause some inconvenience with the nvidia packages.

Please Cc replies to me because I'm not subscribed to the list.