Skip to contentSkip to conversation

fpga: fpga-manager: make __fpga_mgr_get() static

PATCH New Joshua Clayton 1 participant 1 message Jan 23, 2017 FPGA manager framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fpga: fpga-manager: make __fpga_mgr_get() static

Running sparse on this subdirectory suggested __fpga_mgr_get() should be static.
__fpga_mgr_get() is internal to the fpga-mgr framework. Define it as static

---
 drivers/fpga/fpga-mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/fpga-mgr.c +1 -1
index f0a69d3..32860dd 100644
@@ -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;
Signature · 1 line
2.9.3