From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 3/6] [NET] dsa: add support for original DSA tagging format Date: Fri, 3 Oct 2008 19:36:01 +0200 Message-ID: <20081003193601.4f7fbe42@speedy> References: <20080929023829.GI21560@xi.wantstofly.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Byron Bradley , Jesper Dangaard Brouer , Tim Ellis , Andy Fleming , Imre Kaloz , Nicolas Pitre , Dirk Teurlings , Peter van Valderen To: Lennert Buytenhek Return-path: Received: from mail.vyatta.com ([76.74.103.46]:34409 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753195AbYJCRgK (ORCPT ); Fri, 3 Oct 2008 13:36:10 -0400 In-Reply-To: <20080929023829.GI21560@xi.wantstofly.org> Sender: netdev-owner@vger.kernel.org List-ID: Please use stronger types.. > +static inline int netdev_uses_dsa_tags(struct net_device *dev) I would use: static inline bool netdev_uses_dsa_tags(const struct net_device *dev) > +int dsa_uses_dsa_tags(void *dsa_ptr); extern bool dsa_uses_dsa_tags(const struct dsa_switch *dsa);