Commit 47910a49 authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Greg Kroah-Hartman

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: default avatarDinh Nguyen <dinguyen@kernel.org>
Acked-by: default avatarMoritz Fischer <mdf@kernel.org>
Signed-off-by: default avatarAlan Tull <atull@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4495c08e
...@@ -27,7 +27,7 @@ static DEFINE_IDA(fpga_bridge_ida); ...@@ -27,7 +27,7 @@ static DEFINE_IDA(fpga_bridge_ida);
static struct class *fpga_bridge_class; static struct class *fpga_bridge_class;
/* Lock for adding/removing bridges to linked lists*/ /* 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) static int fpga_bridge_of_node_match(struct device *dev, const void *data)
{ {
......
...@@ -361,7 +361,7 @@ static struct attribute *fpga_mgr_attrs[] = { ...@@ -361,7 +361,7 @@ static struct attribute *fpga_mgr_attrs[] = {
}; };
ATTRIBUTE_GROUPS(fpga_mgr); 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; struct fpga_manager *mgr;
int ret = -ENODEV; int ret = -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment