From patchwork Mon Nov 11 06:48:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Linus_L=C3=BCssing?= X-Patchwork-Id: 3555 Return-Path: Received: from mout.web.de (mout.web.de [212.227.17.11]) by open-mesh.org (Postfix) with ESMTPS id 8C472601C3E for ; Mon, 11 Nov 2013 07:48:40 +0100 (CET) Received: from localhost ([94.134.24.149]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0M5flQ-1VUnxn2Fdw-00xYSV for ; Mon, 11 Nov 2013 07:48:40 +0100 From: =?UTF-8?q?Linus=20L=C3=BCssing?= To: b.a.t.m.a.n@lists.open-mesh.org Date: Mon, 11 Nov 2013 07:48:47 +0100 Message-Id: <1384152527-6916-1-git-send-email-linus.luessing@web.de> X-Mailer: git-send-email 1.8.4.2 MIME-Version: 1.0 X-Provags-ID: V03:K0:jXSuEjmG67LJjPtwxe9h6pkCWJxZ7Dj+CSRwgOQJbk1LZIUfQ2m 5bG/DSLyOxgZVubEqvkw6iE/KvqR0kLd5InzSmJinDuCXK/f4CLZkvwHPNp3Ml5LtLPTWD8 rSFlOfyicjh0Embt4e0sO00qcTNxdHLG7QFcGilVREIZHTkkgink4+C+pQ5/dxn5IYR7wBU 9aG19s7ck7pZSQ9EFXwkQ== Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: compat: fix multicast compat code for < 2.6.35 X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 06:48:40 -0000 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 --- 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!