[PATCH 2/3] globalvar: Make locally used function static

Sascha Hauer s.hauer at pengutronix.de
Tue Nov 22 23:50:33 PST 2016


Fixes:

common/globalvar.c:382:5: warning: no previous prototype for 'globalvar_simple_set' [-Wmissing-prototypes]

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/globalvar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/globalvar.c b/common/globalvar.c
index e75cac9..85d0795 100644
--- a/common/globalvar.c
+++ b/common/globalvar.c
@@ -379,7 +379,7 @@ void globalvar_set_match(const char *match, const char *val)
 	}
 }
 
-int globalvar_simple_set(struct device_d *dev, struct param_d *p, const char *val)
+static int globalvar_simple_set(struct device_d *dev, struct param_d *p, const char *val)
 {
 	struct device_d *rdev;
 	const char *pname;
-- 
2.10.2




More information about the barebox mailing list