* [PATCH] fpga: fpga-manager: make __fpga_mgr_get() static
@ 2017-01-23 21:58 Joshua Clayton
0 siblings, 0 replies; only message in thread
From: Joshua Clayton @ 2017-01-23 21:58 UTC (permalink / raw)
To: Alan Tull, Moritz Fischer; +Cc: linux-fpga, linux-kernel, Joshua Clayton
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
Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
---
drivers/fpga/fpga-mgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-23 21:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 21:58 [PATCH] fpga: fpga-manager: make __fpga_mgr_get() static Joshua Clayton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.