aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@kernel.org>2017-02-27 10:18:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-17 02:10:48 -0400
commit47910a49db876397150b9754bc66f0c179448854 (patch)
treee0dac68f48f162a605458f1953ede563c2f1195d /drivers/fpga/fpga-mgr.c
parent4495c08e84729385774601b5146d51d9e5849f81 (diff)
fpga: fix sparse warnings in fpga-mgr and fpga-bridge
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 <dinguyen@kernel.org> Acked-by: Moritz Fischer <mdf@kernel.org> Signed-off-by: Alan Tull <atull@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
-rw-r--r--drivers/fpga/fpga-mgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c
index 86d2cb203533..188ffefa3cc3 100644
--- a/drivers/fpga/fpga-mgr.c
+++ b/drivers/fpga/fpga-mgr.c
@@ -361,7 +361,7 @@ static struct attribute *fpga_mgr_attrs[] = {
361}; 361};
362ATTRIBUTE_GROUPS(fpga_mgr); 362ATTRIBUTE_GROUPS(fpga_mgr);
363 363
364struct fpga_manager *__fpga_mgr_get(struct device *dev) 364static struct fpga_manager *__fpga_mgr_get(struct device *dev)
365{ 365{
366 struct fpga_manager *mgr; 366 struct fpga_manager *mgr;
367 int ret = -ENODEV; 367 int ret = -ENODEV;