From patchwork Mon Sep 9 20:16:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Veaceslav Falico X-Patchwork-Id: 273705 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 9F3B22C00E3 for ; Tue, 10 Sep 2013 06:18:45 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756146Ab3IIUSn (ORCPT ); Mon, 9 Sep 2013 16:18:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22981 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755932Ab3IIUQf (ORCPT ); Mon, 9 Sep 2013 16:16:35 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r89KGWZ8014918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Sep 2013 16:16:32 -0400 Received: from darkmag.usersys.redhat.com (dhcp-27-102.brq.redhat.com [10.34.27.102]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r89KGMDF016628; Mon, 9 Sep 2013 16:16:30 -0400 From: Veaceslav Falico To: netdev@vger.kernel.org Cc: jiri@resnulli.us, Veaceslav Falico , "David S. Miller" , Eric Dumazet , Alexander Duyck Subject: [PATCH net-next 03/26] net: uninline netdev neighbour functions Date: Mon, 9 Sep 2013 22:16:21 +0200 Message-Id: <1378757804-3159-4-git-send-email-vfalico@redhat.com> In-Reply-To: <1378757804-3159-1-git-send-email-vfalico@redhat.com> References: <1378757804-3159-1-git-send-email-vfalico@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org They don't give almost any speed/size advantage, however it's really useful to have them in the backtrace. CC: "David S. Miller" CC: Eric Dumazet CC: Jiri Pirko CC: Alexander Duyck Signed-off-by: Veaceslav Falico --- net/core/dev.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index 749ec0b..eef99de 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4689,14 +4689,14 @@ void __netdev_adjacent_dev_remove(struct net_device *dev, } } -static inline void __netdev_upper_dev_remove(struct net_device *dev, - struct net_device *udev) +static void __netdev_upper_dev_remove(struct net_device *dev, + struct net_device *udev) { return __netdev_adjacent_dev_remove(dev, udev, true); } -static inline void __netdev_lower_dev_remove(struct net_device *dev, - struct net_device *ldev) +static void __netdev_lower_dev_remove(struct net_device *dev, + struct net_device *ldev) { return __netdev_adjacent_dev_remove(dev, ldev, false); } @@ -4720,15 +4720,15 @@ int __netdev_adjacent_dev_insert_link(struct net_device *dev, return 0; } -static inline int __netdev_adjacent_dev_link(struct net_device *dev, - struct net_device *udev) +static int __netdev_adjacent_dev_link(struct net_device *dev, + struct net_device *udev) { return __netdev_adjacent_dev_insert_link(dev, udev, false, false); } -static inline int __netdev_adjacent_dev_link_neighbour(struct net_device *dev, - struct net_device *udev, - bool master) +static int __netdev_adjacent_dev_link_neighbour(struct net_device *dev, + struct net_device *udev, + bool master) { return __netdev_adjacent_dev_insert_link(dev, udev, master, true); }