From: Michael Buesch <mbuesch@freenet.de>
To: Mateusz Berezecki <mateuszb@gmail.com>
Cc: Fawad Lateef <fawadlateef@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
kernel-mentors@selenic.com
Subject: Re: kernel list / container_of aka list_entry question
Date: Sun, 25 Dec 2005 19:10:49 +0100 [thread overview]
Message-ID: <200512251910.49869.mbuesch@freenet.de> (raw)
In-Reply-To: <1e62d1370512250924r4e3078d0ubb8986d52ac8aeb@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 589 bytes --]
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 #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-12-25 18:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-25 16:50 kernel list / container_of aka list_entry question Mateusz Berezecki
2005-12-25 17:24 ` Fawad Lateef
2005-12-25 18:10 ` Michael Buesch [this message]
2005-12-25 18:28 ` Mateusz Berezecki
2005-12-25 18:55 ` Fawad Lateef
2005-12-25 18:30 ` Mateusz Berezecki
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=200512251910.49869.mbuesch@freenet.de \
--to=mbuesch@freenet.de \
--cc=fawadlateef@gmail.com \
--cc=kernel-mentors@selenic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mateuszb@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.