From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754387AbdFWI6m (ORCPT ); Fri, 23 Jun 2017 04:58:42 -0400 Received: from mail.skyhub.de ([5.9.137.197]:38086 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754023AbdFWI6k (ORCPT ); Fri, 23 Jun 2017 04:58:40 -0400 Date: Fri, 23 Jun 2017 10:58:24 +0200 From: Borislav Petkov To: Tony Luck Cc: Colin King , Mauro Carvalho Chehab , linux-edac@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] EDAC, pnd2_edac: make function sbi_send static Message-ID: <20170623085824.yqzachlpvu26knkv@pd.tnic> References: <20170623084855.9197-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170623084855.9197-1-colin.king@canonical.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 23, 2017 at 09:48:55AM +0100, Colin King wrote: > From: Colin Ian King > > The function sbi_send is local to just pnd2_edac.c and does not need to > be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'sbi_send' was not declared. Should it be static? > > Signed-off-by: Colin Ian King > --- > drivers/edac/pnd2_edac.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/edac/pnd2_edac.c b/drivers/edac/pnd2_edac.c > index 1cad5a9af8d0..4efdca1dad5a 100644 > --- a/drivers/edac/pnd2_edac.c > +++ b/drivers/edac/pnd2_edac.c > @@ -131,7 +131,7 @@ static struct mem_ctl_info *pnd2_mci; > > #ifdef CONFIG_X86_INTEL_SBI_APL > #include "linux/platform_data/sbi_apl.h" > -int sbi_send(int port, int off, int op, u32 *data) > +static int sbi_send(int port, int off, int op, u32 *data) > { > struct sbi_apl_message sbi_arg; > int ret, read = 0; > @@ -160,7 +160,7 @@ int sbi_send(int port, int off, int op, u32 *data) > return ret; > } > #else > -int sbi_send(int port, int off, int op, u32 *data) > +static int sbi_send(int port, int off, int op, u32 *data) Tony, were those supposed to be used somewhere outside of the driver, i.e., that CONFIG_X86_INTEL_SBI_APL thing? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.