summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-09-14 12:38:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-09-20 10:29:06 +0200
commit1d02283b2f1203db3b7be91ee2588b7340dfcbcf (patch)
treeaf1ca5d647221df9b2d6f91777f3c8c9faaa9af1 /common
parent3a690e4d6976517315f1dd73334920d749a28755 (diff)
downloadbarebox-1d02283b2f1203db3b7be91ee2588b7340dfcbcf.tar.gz
barebox-1d02283b2f1203db3b7be91ee2588b7340dfcbcf.tar.xz
state: make locally used function static
state_set_dirty() is only used in one file, make it static. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/state/state.h1
-rw-r--r--common/state/state_variables.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/common/state/state.h b/common/state/state.h
index 855ba9d868..bc6917de61 100644
--- a/common/state/state.h
+++ b/common/state/state.h
@@ -190,7 +190,6 @@ struct state_string {
char raw[];
};
-int state_set_dirty(struct param_d *p, void *priv);
int state_from_node(struct state *state, struct device_node *node, bool create);
struct device_node *state_to_node(struct state *state,
struct device_node *parent,
diff --git a/common/state/state_variables.c b/common/state/state_variables.c
index 4f8246249d..6f2b1ae107 100644
--- a/common/state/state_variables.c
+++ b/common/state/state_variables.c
@@ -34,7 +34,7 @@
* @param priv
* @return
*/
-int state_set_dirty(struct param_d *p, void *priv)
+static int state_set_dirty(struct param_d *p, void *priv)
{
struct state *state = priv;