Re: kernel list / container_of aka list_entry question

From: Michael Buesch
Date: Sun Dec 25 2005 - 13:13:09 EST


On Sunday 25 December 2005 18:24, you wrote:
> > The second question is why the following code generates errors
> > during compilation. list.h header file is included.
> >
> > struct atheros_priv *priv = ieee80211_priv(dev); /* line number 141 */
> > struct list_head *iterator;
> >
> >
> > list_for_each(iterator, &priv->rxbuf.list) {
> > struct ath_buf *bf = list_entry(iterator, (struct ath_buf), list);
^ ^
Remove the parenthesis.

--
Greetings Michael.

Attachment: pgp00001.pgp
Description: PGP signature