From: Chen Gang <gang.chen@asianux.com>
To: msalter@redhat.com, a-jacquiot@ti.com
Cc: jkc@redhat.com, linux-c6x-dev@linux-c6x.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Linux-Arch <linux-arch@vger.kernel.org>
Subject: [PATCH] arch: c6x: kernel: include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled.
Date: Tue, 25 Jun 2013 09:58:32 +0800 [thread overview]
Message-ID: <51C8F948.2040204@asianux.com> (raw)
Need include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled
(e.g allmodconfig).
The related error:
arch/c6x/kernel/setup.c: In function ‘setup_arch’:
arch/c6x/kernel/setup.c:442:2: error: ‘conswitchp’ undeclared (first use in this function)
arch/c6x/kernel/setup.c:442:2: note: each undeclared identifier is reported only once for each function it appears in
arch/c6x/kernel/setup.c:442:16: error: ‘dummy_con’ undeclared (first use in this function)
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
arch/c6x/kernel/setup.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c
index f4e72bd..1411141 100644
--- a/arch/c6x/kernel/setup.c
+++ b/arch/c6x/kernel/setup.c
@@ -26,6 +26,9 @@
#include <linux/cpu.h>
#include <linux/fs.h>
#include <linux/of.h>
+#if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE)
+#include <linux/console.h>
+#endif
#include <asm/sections.h>
--
1.7.7.6
next reply other threads:[~2013-06-25 1:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 1:58 Chen Gang [this message]
2013-06-25 7:06 ` [PATCH] arch: c6x: kernel: include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled Geert Uytterhoeven
2013-06-25 7:34 ` Chen Gang
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=51C8F948.2040204@asianux.com \
--to=gang.chen@asianux.com \
--cc=a-jacquiot@ti.com \
--cc=jkc@redhat.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-c6x-dev@linux-c6x.org \
--cc=linux-kernel@vger.kernel.org \
--cc=msalter@redhat.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