From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/2] globalvar: make nv_device static
Date: Mon, 24 Apr 2017 18:44:07 +0300 [thread overview]
Message-ID: <20170424154408.15860-2-antonynpavlov@gmail.com> (raw)
In-Reply-To: <20170424154408.15860-1-antonynpavlov@gmail.com>
nv_device isn't used outside of common/globalvar.c
so make it static.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
common/globalvar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/globalvar.c b/common/globalvar.c
index 32ca6a24db..ebc5e830d2 100644
--- a/common/globalvar.c
+++ b/common/globalvar.c
@@ -19,7 +19,7 @@ struct device_d global_device = {
.id = DEVICE_ID_SINGLE,
};
-struct device_d nv_device = {
+static struct device_d nv_device = {
.name = "nv",
.id = DEVICE_ID_SINGLE,
};
--
2.11.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2017-04-24 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-24 15:44 [PATCH 0/2] globalvar: nv_device fixes Antony Pavlov
2017-04-24 15:44 ` Antony Pavlov [this message]
2017-04-24 15:44 ` [PATCH 2/2] globalvar: don't use nv_device if CONFIG_NVVAR is disabled Antony Pavlov
2017-04-25 5:43 ` [PATCH 0/2] globalvar: nv_device fixes 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=20170424154408.15860-2-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--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