lkml.org 
[lkml]   [2005]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: kernel list / container_of aka list_entry question
Date
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-12-25 19:16    [W:0.070 / U:4.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site