Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754410AbdDFTtK (ORCPT ); Thu, 6 Apr 2017 15:49:10 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:37382 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753323AbdDFTtB (ORCPT ); Thu, 6 Apr 2017 15:49:01 -0400 From: Vivien Didelot To: Florian Fainelli , netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , open list Subject: Re: [PATCH net-next v2] net: dsa: mv88e6xxx: Make SMI c22/c45 read/write functions static In-Reply-To: <20170406194217.13927-1-f.fainelli@gmail.com> References: <20170406194217.13927-1-f.fainelli@gmail.com> Date: Thu, 06 Apr 2017 15:47:31 -0400 Message-ID: <87efx548to.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1400 Lines: 28 Hi Florian, Florian Fainelli writes: > The SMI clause 22 & 45 read/write operations are local to the global2.c file, > so make them static. This eliminates the following warning: > > drivers/net/dsa/mv88e6xxx/global2.c:571:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_read_c45' [-Wmissing-prototypes] > int mv88e6xxx_g2_smi_phy_read_c45(struct mv88e6xxx_chip *chip, int addr, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/dsa/mv88e6xxx/global2.c:602:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_read_c22' [-Wmissing-prototypes] > int mv88e6xxx_g2_smi_phy_read_c22(struct mv88e6xxx_chip *chip, int addr, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/dsa/mv88e6xxx/global2.c:635:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_write_c45' [-Wmissing-prototypes] > int mv88e6xxx_g2_smi_phy_write_c45(struct mv88e6xxx_chip *chip, int addr, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/dsa/mv88e6xxx/global2.c:664:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_write_c22' [-Wmissing-prototypes] > int mv88e6xxx_g2_smi_phy_write_c22(struct mv88e6xxx_chip *chip, int addr, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Suggested-by: Andrew Lunn > Signed-off-by: Florian Fainelli Reviewed-by: Vivien Didelot Thanks, Vivien