[PATCH 2/3] state: make locally used function static
Sascha Hauer
s.hauer at pengutronix.de
Tue Sep 20 01:30:41 PDT 2016
state_set_dirty() is only used in one file, make it static.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/state/state.h | 1 -
common/state/state_variables.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/common/state/state.h b/common/state/state.h
index 855ba9d..bc6917d 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 4f82462..6f2b1ae 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;
--
2.8.1
More information about the barebox
mailing list