From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752893AbbJFWMb (ORCPT ); Tue, 6 Oct 2015 18:12:31 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:50497 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752166AbbJFWM3 (ORCPT ); Tue, 6 Oct 2015 18:12:29 -0400 X-Greylist: delayed 994 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Oct 2015 18:12:29 EDT From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Scott Feldman , Jiri Pirko , Florian Fainelli , Andrew Lunn , Neil Armstrong , Sergei Shtylyov , Vivien Didelot Subject: [PATCH net-next 3/3] net: remove dsa.h include from linux/netdevice.h Date: Tue, 6 Oct 2015 17:54:27 -0400 Message-Id: <1444168467-10293-4-git-send-email-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.6.0 In-Reply-To: <1444168467-10293-1-git-send-email-vivien.didelot@savoirfairelinux.com> References: <1444168467-10293-1-git-send-email-vivien.didelot@savoirfairelinux.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forward declare struct dsa_switch_tree in netdevice.h instead of including the dsa.h header. Signed-off-by: Vivien Didelot --- include/linux/netdevice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 1986a22..4618b1d 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -38,13 +38,12 @@ #include #include #include #include #include -#include #ifdef CONFIG_DCB #include #endif #include #include @@ -57,12 +56,14 @@ struct device; struct phy_device; /* 802.11 specific */ struct wireless_dev; /* 802.15.4 specific */ struct wpan_dev; struct mpls_dev; +/* DSA specific */ +struct dsa_switch_tree; void netdev_set_default_ethtool_ops(struct net_device *dev, const struct ethtool_ops *ops); /* Backlog congestion levels */ #define NET_RX_SUCCESS 0 /* keep 'em coming, baby */ -- 2.6.0