From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754910AbbJGRU2 (ORCPT ); Wed, 7 Oct 2015 13:20:28 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:35598 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754750AbbJGRU1 (ORCPT ); Wed, 7 Oct 2015 13:20:27 -0400 Date: Wed, 7 Oct 2015 19:20:24 +0200 From: Jiri Pirko To: Vivien Didelot Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Scott Feldman , Florian Fainelli , Andrew Lunn , Neil Armstrong , Sergei Shtylyov Subject: Re: [PATCH net-next 0/3] net: remove dsa.h from netdevice.h Message-ID: <20151007172024.GH2152@nanopsycho.orion> References: <1444168467-10293-1-git-send-email-vivien.didelot@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1444168467-10293-1-git-send-email-vivien.didelot@savoirfairelinux.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tue, Oct 06, 2015 at 11:54:24PM CEST, vivien.didelot@savoirfairelinux.com wrote: >In order to push switchdev objects down to DSA drivers, I need to include >switchdev.h in dsa.h. But compilation fails because of a circular dependency >issue, since dsa.h is also included in linux/netdevice.h. > >dsa.h is included for two purposes: to have the definition of struct >dsa_switch_tree; and to have access to dsa_uses_tagged_protocol(), used by >netdev_uses_dsa(). > >This patchset forward declares struct dsa_switch_tree; adds a new uses_hw_tag >boolean to struct net_device, which is more explicit than the DSA helper, and >finally get rid of the dsa.h include. > >With this patchset, switchdev.h can safely be included in dsa.h. Looks fine to me. I think that you should push this along with your other patchset which actually needs this. Thanks!