From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751081AbdE3Quc (ORCPT ); Tue, 30 May 2017 12:50:32 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:58462 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922AbdE3Qua (ORCPT ); Tue, 30 May 2017 12:50:30 -0400 Date: Tue, 30 May 2017 18:50:25 +0200 From: Andrew Lunn To: Arnd Bergmann Cc: Vivien Didelot , Florian Fainelli , "David S. Miller" , Networking , Linux Kernel Mailing List Subject: Re: [PATCH] net: dsa: mv88e6xxx: Add missing static to stub functions Message-ID: <20170530165025.GA30766@lunn.ch> References: <20170529125612.110244-1-arnd@arndb.de> <20170529153030.GB21315@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 29, 2017 at 11:06:51PM +0200, Arnd Bergmann wrote: > On Mon, May 29, 2017 at 5:30 PM, Andrew Lunn wrote: > > On Mon, May 29, 2017 at 02:56:01PM +0200, Arnd Bergmann wrote: > >> 'static' was not enough, the helpers must be 'static inline' > >> > >> net/dsa/mv88e6xxx/global2.h:123:12: error: 'mv88e6xxx_g2_misc_4_bit_port' defined but not used [-Werror=unused-function] > >> net/dsa/mv88e6xxx/global2.h:117:12: error: 'mv88e6xxx_g2_pvt_write' defined but not used [-Werror=unused-function] > >> > >> Fixes: c21fbe29f858 ("net: dsa: mv88e6xxx: Add missing static to stub functions") > >> Signed-off-by: Arnd Bergmann > > > > Hi Arnd > > > > Dave merged my fix yesterday. > > Hi Andrew, > > The only commit I see from you in the net/master branch is the partial fix > I referenced in the 'fixes' line (c21fbe29f858), from all I can tell, my fix is > still needed on top. Can you check again? Hi Arnd Yes, you are correct. Adding the static was enough to stop the 0-day warnings, but they should also inline. Andrew