Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752863AbcLCQl2 (ORCPT ); Sat, 3 Dec 2016 11:41:28 -0500 Received: from mail-qk0-f179.google.com ([209.85.220.179]:35103 "EHLO mail-qk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbcLCQl1 (ORCPT ); Sat, 3 Dec 2016 11:41:27 -0500 MIME-Version: 1.0 In-Reply-To: <20161202212305.19475-1-dinguyen@kernel.org> References: <20161202212305.19475-1-dinguyen@kernel.org> From: Moritz Fischer Date: Sat, 3 Dec 2016 08:41:25 -0800 Message-ID: Subject: Re: [PATCH] fpga: fix sparse warnings in fpga-mgr and fpga-bridge To: Dinh Nguyen Cc: Alan Tull , "dinguyen@opensource.altera.com" , linux-fpga@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1538 Lines: 48 On Fri, Dec 2, 2016 at 1:23 PM, Dinh Nguyen wrote: > Fix up these sparse warnings: > > drivers/fpga/fpga-mgr.c:189:21: warning: symbol '__fpga_mgr_get' was not > declared. Should it be static? > drivers/fpga/fpga-bridge.c:30:12: warning: symbol 'bridge_list_lock' was > not declared. Should it be static? > > Signed-off-by: Dinh Nguyen Acked-by: Moritz Fischer > --- > drivers/fpga/fpga-bridge.c | 2 +- > drivers/fpga/fpga-mgr.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c > index 33ee83e..e04a899 100644 > --- a/drivers/fpga/fpga-bridge.c > +++ b/drivers/fpga/fpga-bridge.c > @@ -27,7 +27,7 @@ static DEFINE_IDA(fpga_bridge_ida); > static struct class *fpga_bridge_class; > > /* Lock for adding/removing bridges to linked lists*/ > -spinlock_t bridge_list_lock; > +static spinlock_t bridge_list_lock; > > static int fpga_bridge_of_node_match(struct device *dev, const void *data) > { > diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c > index f0a69d3..32860dd 100644 > --- a/drivers/fpga/fpga-mgr.c > +++ b/drivers/fpga/fpga-mgr.c > @@ -186,7 +186,7 @@ static struct attribute *fpga_mgr_attrs[] = { > }; > ATTRIBUTE_GROUPS(fpga_mgr); > > -struct fpga_manager *__fpga_mgr_get(struct device *dev) > +static struct fpga_manager *__fpga_mgr_get(struct device *dev) > { > struct fpga_manager *mgr; > int ret = -ENODEV; > -- > 2.8.3 > Thanks, Moritz