From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
To: Petr Mladek <pmladek@suse.com>,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Hans de Goede <hdegoede@redhat.com>,
linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org,
Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Subject: [PATCH v2 1/2] OF: move extern declarations of of_stdout inside ifdef
Date: Mon, 28 Aug 2017 19:58:06 +0300 [thread overview]
Message-ID: <20170828165807.8408-2-Eugeniy.Paltsev@synopsys.com> (raw)
In-Reply-To: <20170828165807.8408-1-Eugeniy.Paltsev@synopsys.com>
Move extern declarations of "of_stdout" pointer inside "CONFIG_OF"
ifdef to be able to get rid of "CONFIG_OF" ifdef in its usage places.
Acked-by: Rob Herring <robh@kernel.org>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
include/linux/of.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux/of.h b/include/linux/of.h
index cfc3411..be28cb9 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -135,7 +135,6 @@ static inline void of_node_put(struct device_node *node) { }
extern struct device_node *of_root;
extern struct device_node *of_chosen;
extern struct device_node *of_aliases;
-extern struct device_node *of_stdout;
extern raw_spinlock_t devtree_lock;
/* flag descriptions (need to be visible even when !CONFIG_OF) */
@@ -147,6 +146,8 @@ extern raw_spinlock_t devtree_lock;
#define OF_BAD_ADDR ((u64)-1)
#ifdef CONFIG_OF
+extern struct device_node *of_stdout;
+
void of_core_init(void);
static inline bool is_of_node(const struct fwnode_handle *fwnode)
@@ -539,6 +540,7 @@ const char *of_prop_next_string(struct property *prop, const char *cur);
bool of_console_check(struct device_node *dn, char *name, int index);
#else /* CONFIG_OF */
+#define of_stdout NULL
static inline void of_core_init(void)
{
--
2.9.3
next prev parent reply other threads:[~2017-08-28 16:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-28 16:58 [PATCH v2 0/2] console: don't select first registered console if stdout-path used Eugeniy Paltsev
2017-08-28 16:58 ` Eugeniy Paltsev [this message]
2017-08-28 16:58 ` [PATCH v2 2/2] " Eugeniy Paltsev
2017-09-05 14:54 ` Petr Mladek
2017-09-06 17:57 ` Eugeniy Paltsev
2017-09-06 18:13 ` Paul Burton
2017-11-07 13:04 ` Petr Mladek
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=20170828165807.8408-2-Eugeniy.Paltsev@synopsys.com \
--to=eugeniy.paltsev@synopsys.com \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=pmladek@suse.com \
--cc=rostedt@goodmis.org \
--cc=sergey.senozhatsky@gmail.com \
/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
all inboxes | Powered by JetHome®