mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 2/3] state: make locally used function static
Date: Tue, 20 Sep 2016 10:30:41 +0200	[thread overview]
Message-ID: <1474360242-3512-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1474360242-3512-1-git-send-email-s.hauer@pengutronix.de>

state_set_dirty() is only used in one file, make it static.

Signed-off-by: Sascha Hauer <s.hauer@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2016-09-20  8:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-20  8:30 [PATCH 1/3] state: Add state to state_variable Sascha Hauer
2016-09-20  8:30 ` Sascha Hauer [this message]
2016-09-20  8:30 ` [PATCH 3/3] state: consistently pass one type as private data to dev_add_param_* Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474360242-3512-2-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox