From patchwork Fri Apr 29 20:15:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 15998 Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id 1DD06822D9; Fri, 29 Apr 2016 22:15:11 +0200 (CEST) Authentication-Results: open-mesh.org; dmarc=pass header.from=narfation.org Authentication-Results: open-mesh.org; dkim=pass reason="1024-bit key; unprotected key" header.d=narfation.org header.i=@narfation.org header.b=T+ynsqJC; dkim-adsp=pass; dkim-atps=neutral Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2001:4d88:2000:7::2; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver=b.a.t.m.a.n@lists.open-mesh.org Authentication-Results: open-mesh.org; dmarc=pass header.from=narfation.org Received: from v3-1039.vlinux.de (narfation.org [IPv6:2001:4d88:2000:7::2]) by open-mesh.org (Postfix) with ESMTPS id AB0BD804C3 for ; Fri, 29 Apr 2016 22:15:09 +0200 (CEST) Received: from sven-edge.localnet (p200300C593C12BFD0000000000002E16.dip0.t-ipconnect.de [IPv6:2003:c5:93c1:2bfd::2e16]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 01CF51100F1; Fri, 29 Apr 2016 22:15:08 +0200 (CEST) Authentication-Results: v3-1039.vlinux.de; dmarc=none header.from=narfation.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1461960909; bh=S+2hYOOk5haUV+zp2fjsijIbK2DXXYEjG5GewGXYuRM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=T+ynsqJCIZ6QZZToXVYCPHQSZ2C4Bls1OchOEOkYBUDwA/fyVeG6vdM2AdS5tlSc5 jz6eqLNHpL39sjZf6kjVAjJ2vyroubxrrVBGjEWtfknn2aEt/XVz4hdvW+8IBkqVrH daE6Ks9DZXHK1Ty9XWQ0nasdRq3C6GUhtryQL3Aw= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org, Andrew Lunn Date: Fri, 29 Apr 2016 22:15:05 +0200 Message-ID: <5260794.F0xJx6Cp5q@sven-edge> User-Agent: KMail/4.14.10 (Linux/4.5.0-1-amd64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <36550935.HMH55OGFCA@sven-edge> References: <1461875848-11720-1-git-send-email-andrew@lunn.ch> <1461875848-11720-4-git-send-email-andrew@lunn.ch> <36550935.HMH55OGFCA@sven-edge> MIME-Version: 1.0 Subject: Re: [B.A.T.M.A.N.] [PATCH 03/10] batman-adv: add generic netlink query API to replace debugfs files X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" On Friday 29 April 2016 21:55:32 Sven Eckelmann wrote: [...] > But there is now still the problem that info->snd_portid was previously > called info->snd_pid. Also the genl_register_family_with_ops compat has to > be added. I don't have a better idea for the snd_portid right now than the attached patch. The seems to be already solved by backports.git but I will not try to understand their hacks tonight. https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/tree/backport/backport-include/net/genetlink.h?id=a91a3e6e3a6ed6cdbbe942bafe05ae5fcdf41ce9 Kind regards, Sven From: Sven Eckelmann Date: Fri, 29 Apr 2016 22:10:20 +0200 Subject: [PATCH] add snd_portid hack --- compat.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compat.h b/compat.h index 0644241..fc78948 100644 --- a/compat.h +++ b/compat.h @@ -62,6 +62,12 @@ static int __batadv_interface_kill_vid(struct net_device *dev, __be16 proto,\ #endif /* < KERNEL_VERSION(3, 3, 0) */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0) + +#define snd_portid snd_pid + +#endif /* < KERNEL_VERSION(3, 7, 0) */ + #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) #define batadv_interface_set_mac_addr(x, y) \