From patchwork Wed Mar 28 11:35:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 1622 Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id D47E760075D for ; Wed, 28 Mar 2012 13:35:30 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@narfation.org; dkim-adsp=pass Received: from sven-desktop.home.narfation.org (unknown [147.102.180.182]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 462A6940D0; Wed, 28 Mar 2012 13:38:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=mail; t=1332934684; bh=nlsnAfa9MvAQtp3ZyvYnS7fu3Fw8/ewGU/DnllWIZEE=; h=From:To:Cc:Subject:Date:Message-Id; b=UMg1Mls49fSzapRrb5ev+FiL1lwUD2qSOdY+ADrMzBb+QB/PBErNx2HMkqjssm6Zq Aa8RhF1Y8pgjllUcdHfisRBGrnU4WH3gBS0Cm1r6oZfQ7QVBCxA83xqDWUmLxkV7Ny QaQGXrFa+z+iyJNN3LBuZ/UgBGfWHJTe5H+9bX9k= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 28 Mar 2012 13:35:05 +0200 Message-Id: <1332934505-22964-1-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.7.9.1 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Use eth_hw_addr_random compat also for kernel 3.3 X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 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: Wed, 28 Mar 2012 11:35:31 -0000 The changes for eth_hw_addr_random were not merged in linux 3.3. Therefore, the compat layer has to provide it. Signed-off-by: Sven Eckelmann --- compat.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compat.h b/compat.h index 46de8b0..92379ef 100644 --- a/compat.h +++ b/compat.h @@ -132,13 +132,13 @@ void free_rcu_backbone_gw(struct rcu_head *rcu); #endif /* < KERNEL_VERSION(3, 0, 0) */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) static inline void eth_hw_addr_random(struct net_device *dev) { random_ether_addr(dev->dev_addr); } -#endif /* < KERNEL_VERSION(3, 0, 0) */ +#endif /* < KERNEL_VERSION(3, 4, 0) */ #endif /* _NET_BATMAN_ADV_COMPAT_H_ */