b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
From: "Linus Lüssing" <linus.luessing@web.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: compat: fix multicast compat code for < 2.6.35
Date: Mon, 11 Nov 2013 07:48:47 +0100	[thread overview]
Message-ID: <1384152527-6916-1-git-send-email-linus.luessing@web.de> (raw)

A typo resulted into the following build warning:

"In function 'batadv_mcast_mla_softif_get':
 warning: assignment from incompatible pointer type"

This commit fixes it by using the correct name for the according struct.

Introduced by: a3f58139efedb96222dffdda89896c243fdff49e
("batman-adv: Multicast Listener Announcements via Translation Table")

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
---
 compat.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compat.h b/compat.h
index 186547b..c83ac2c 100644
--- a/compat.h
+++ b/compat.h
@@ -103,8 +103,8 @@ static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev,
 
 #undef  netdev_for_each_mc_addr
 #define netdev_for_each_mc_addr(mclist, dev) \
-	for (mclist = (struct bat_dev_addr_list *)dev->mc_list; mclist; \
-	     mclist = (struct bat_dev_addr_list *)mclist->next)
+	for (mclist = (struct batadv_dev_addr_list *)dev->mc_list; mclist; \
+	     mclist = (struct batadv_dev_addr_list *)mclist->next)
 
 /* Note, that this breaks the usage of the normal 'struct netdev_hw_addr'
  * for kernels < 2.6.35 in batman-adv!
-- 
1.7.10.4


                 reply	other threads:[~2013-11-11  6:48 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=1384152527-6916-1-git-send-email-linus.luessing@web.de \
    --to=linus.luessing@web.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.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;
as well as URLs for NNTP newsgroup(s).