Linux wireless drivers development
 help / color / mirror / Atom feed
From: Tony Houghton <h@realh.co.uk>
To: linux-wireless@vger.kernel.org
Subject: Building current snapshot against kernel 2.6.38 (kfree_rcu problem)
Date: Sat, 7 May 2011 21:29:42 +0100	[thread overview]
Message-ID: <20110507212942.7ba668a8@toddler> (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.

                 reply	other threads:[~2011-05-07 20:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110507212942.7ba668a8@toddler \
    --to=h@realh.co.uk \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox