{"id":806665,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806665/?format=json","project":{"id":48,"url":"http://patchwork.ozlabs.org/api/1.0/projects/48/?format=json","name":"Linux ARC development","link_name":"linux-arc","list_id":"linux-snps-arc.lists.infradead.org","list_email":"linux-snps-arc@lists.infradead.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20170828165807.8408-2-Eugeniy.Paltsev@synopsys.com>","date":"2017-08-28T16:58:06","name":"[v2,1/2] OF: move extern declarations of of_stdout inside ifdef","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"521dfd63a558858729d522df12fe9531c35e41ab","submitter":{"id":69220,"url":"http://patchwork.ozlabs.org/api/1.0/people/69220/?format=json","name":"Eugeniy Paltsev","email":"Eugeniy.Paltsev@synopsys.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-arc/patch/20170828165807.8408-2-Eugeniy.Paltsev@synopsys.com/mbox/","series":[{"id":218,"url":"http://patchwork.ozlabs.org/api/1.0/series/218/?format=json","date":"2017-08-28T16:58:05","name":"console: don't select first registered console if stdout-path used","version":2,"mbox":"http://patchwork.ozlabs.org/series/218/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806665/checks/","tags":{},"headers":{"Return-Path":"<linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"WvbkpKvm\"; \n\tdkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgyf05zF7z9s7m\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 29 Aug 2017 02:58:48 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmNN9-0005Qs-Bs; Mon, 28 Aug 2017 16:58:47 +0000","from smtprelay2.synopsys.com ([198.182.60.111]\n\thelo=smtprelay.synopsys.com)\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmNN0-00056z-FH for linux-snps-arc@lists.infradead.org;\n\tMon, 28 Aug 2017 16:58:45 +0000","from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239])\n\tby smtprelay.synopsys.com (Postfix) with ESMTP id 70A7B10C1486;\n\tMon, 28 Aug 2017 09:58:17 -0700 (PDT)","from mailhost.synopsys.com (localhost [127.0.0.1])\n\tby mailhost.synopsys.com (Postfix) with ESMTP id 5B867A1C;\n\tMon, 28 Aug 2017 09:58:17 -0700 (PDT)","from localhost.internal.synopsys.com (unknown [10.121.8.106])\n\tby mailhost.synopsys.com (Postfix) with ESMTP id 874949C5;\n\tMon, 28 Aug 2017 09:58:15 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References:\n\tIn-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=9zWK8VpEIhYd/npOU/Hl8ziYAK0yT9LU2u1XczIWqIg=;\n\tb=WvbkpKvm3xSlVzLbtkMtqcZW3e\n\tgJT2HBZ9I/t4MfxMwKt+NeswxxYwgW9LWx7zL2B18j+AHjEKdbKQ9PUMYPejMoO5o11xd5Wi9lvwp\n\t+pEhGLSJlEv6EUyT4uJH3VWFemNukiRQqz1xHqlyVZhLS2W0x+hO2xw69NvbubqQEi953Slkww3ZH\n\tyazs5FFOTNHIZt+C1xEOEHubPT4PSA/3P2aEsk//DM18ZfDyt7sqmWmxyKaenUzRBeYfs3MlUalDI\n\tCk4Ou10wT5hc7bLnDB9aJTPsMpfFtj9UvFhipEOG9vLCUIaPyWTQTLhAHuyDSwtFiW5n1fyqi5DwQ\n\tsa9kfIcA==;","From":"Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>","To":"Petr Mladek <pmladek@suse.com>,\n\tSergey Senozhatsky <sergey.senozhatsky@gmail.com>","Subject":"[PATCH v2 1/2] OF: move extern declarations of of_stdout inside\n\tifdef","Date":"Mon, 28 Aug 2017 19:58:06 +0300","Message-Id":"<20170828165807.8408-2-Eugeniy.Paltsev@synopsys.com>","X-Mailer":"git-send-email 2.9.3","In-Reply-To":"<20170828165807.8408-1-Eugeniy.Paltsev@synopsys.com>","References":"<20170828165807.8408-1-Eugeniy.Paltsev@synopsys.com>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170828_095839_227183_057D399D ","X-CRM114-Status":"UNSURE (   7.24  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [198.182.60.111 listed in list.dnswl.org]\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-snps-arc@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"Linux on Synopsys ARC Processors\n\t<linux-snps-arc.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-snps-arc>, \n\t<mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-snps-arc/>","List-Post":"<mailto:linux-snps-arc@lists.infradead.org>","List-Help":"<mailto:linux-snps-arc-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, \n\t<mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe>","Cc":"Hans de Goede <hdegoede@redhat.com>, linux-snps-arc@lists.infradead.org, \n\tEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>,\n\tlinux-kernel@vger.kernel.org, Steven Rostedt <rostedt@goodmis.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-snps-arc\" <linux-snps-arc-bounces@lists.infradead.org>","Errors-To":"linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"Move extern declarations of \"of_stdout\" pointer inside \"CONFIG_OF\"\nifdef to be able to get rid of \"CONFIG_OF\" ifdef in its usage places.\n\nAcked-by: Rob Herring <robh@kernel.org>\nSuggested-by: Steven Rostedt <rostedt@goodmis.org>\nSigned-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>\n---\n include/linux/of.h | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)","diff":"diff --git a/include/linux/of.h b/include/linux/of.h\nindex cfc3411..be28cb9 100644\n--- a/include/linux/of.h\n+++ b/include/linux/of.h\n@@ -135,7 +135,6 @@ static inline void of_node_put(struct device_node *node) { }\n extern struct device_node *of_root;\n extern struct device_node *of_chosen;\n extern struct device_node *of_aliases;\n-extern struct device_node *of_stdout;\n extern raw_spinlock_t devtree_lock;\n \n /* flag descriptions (need to be visible even when !CONFIG_OF) */\n@@ -147,6 +146,8 @@ extern raw_spinlock_t devtree_lock;\n #define OF_BAD_ADDR\t((u64)-1)\n \n #ifdef CONFIG_OF\n+extern struct device_node *of_stdout;\n+\n void of_core_init(void);\n \n static inline bool is_of_node(const struct fwnode_handle *fwnode)\n@@ -539,6 +540,7 @@ const char *of_prop_next_string(struct property *prop, const char *cur);\n bool of_console_check(struct device_node *dn, char *name, int index);\n \n #else /* CONFIG_OF */\n+#define of_stdout\tNULL\n \n static inline void of_core_init(void)\n {\n","prefixes":["v2","1/2"]}