From patchwork Thu Oct 3 21:02:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 3531 Return-Path: Received: from cora.hrz.tu-chemnitz.de (cora.hrz.tu-chemnitz.de [134.109.228.40]) by open-mesh.org (Postfix) with ESMTPS id 215BF600993 for ; Thu, 3 Oct 2013 23:02:21 +0200 (CEST) Received: from p549bc509.dip0.t-ipconnect.de ([84.155.197.9] helo=pandem0nium) by cora.hrz.tu-chemnitz.de with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VRq2N-0000u2-R7; Thu, 03 Oct 2013 23:02:20 +0200 Received: from dotslash by pandem0nium with local (Exim 4.80) (envelope-from ) id 1VRq2M-0002os-Um; Thu, 03 Oct 2013 23:02:18 +0200 From: Simon Wunderlich To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 3 Oct 2013 23:02:13 +0200 Message-Id: <1380834133-10808-1-git-send-email-siwu@hrz.tu-chemnitz.de> X-Mailer: git-send-email 1.7.10.4 X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1380834139-00007495-026B6F4E/0-0/0-0 X-Scan-AV: cora.hrz.tu-chemnitz.de; 2013-10-03 23:02:19; 41be4aab282e50493afc20002c423ea3 X-Scan-SA: cora.hrz.tu-chemnitz.de; 2013-10-03 23:02:20; 9bacca0d4052f3da46ee71765d42d3d4 X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse Cc: Simon Wunderlich Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: fix compat of net_ratelimited_function for >3.2.46 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: Thu, 03 Oct 2013 21:02:21 -0000 From: Simon Wunderlich Appearently net_ratelimited_function was added to the stable series of from 3.2.47, which results in a lot of warnings when compiling against this kernel. This patch avoids this redefinition. Signed-off-by: Simon Wunderlich --- compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat.h b/compat.h index 7e0a7f0..04a2256 100644 --- a/compat.h +++ b/compat.h @@ -241,11 +241,13 @@ static inline void batadv_eth_hw_addr_random(struct net_device *dev) #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0) +#ifndef net_ratelimited_function #define net_ratelimited_function(func, ...) \ do { \ if (net_ratelimit()) \ func(__VA_ARGS__); \ } while (0) +#endif /* ifndef net_ratelimited_function */ #endif /* < KERNEL_VERSION(3, 5, 0) */