mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: duhuanpeng <iu87m888m@qq.com>
To: barebox@lists.infradead.org
Subject: Re: compile error report: CONFIG_CONSOLE_SIMPLE=y
Date: Thu, 3 Oct 2019 21:38:04 +0800	[thread overview]
Message-ID: <20191003133804.GA19263@router.tkernel.org> (raw)
In-Reply-To: <20191003122624.GA12292@router.tkernel.org>

From 13cf76cfb965abac9433447c71f46d6c7abb0c50 Mon Sep 17 00:00:00 2001
From: DU HUANPENG <u74147@gmail.com>
Date: Thu, 3 Oct 2019 21:27:40 +0800
Subject: [PATCH] fix compile error when set CONFIG_CONSOLE_SIMPLE=y

Signed-off-by: DU HUANPENG <u74147@gmail.com>
---
 common/console_simple.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/common/console_simple.c b/common/console_simple.c
index 385da2f..010e0b3 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -65,6 +65,9 @@ void console_flush(void)
 EXPORT_SYMBOL(console_flush);
 
 #ifndef ARCH_HAS_CTRLC
+void ctrlc_handled(void)
+{
+}
 /* test if ctrl-c was pressed */
 int ctrlc (void)
 {
@@ -73,6 +76,15 @@ int ctrlc (void)
 	return 0;
 }
 EXPORT_SYMBOL(ctrlc);
+
+void console_ctrlc_allow(void)
+{
+}
+
+void console_ctrlc_forbid(void)
+{
+}
+
 #endif /* ARCH_HAS_CTRC */
 
 int console_register(struct console_device *newcdev)
-- 
2.7.4





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

      reply	other threads:[~2019-10-03 13:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-03 12:26 duhuanpeng
2019-10-03 13:38 ` duhuanpeng [this message]

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=20191003133804.GA19263@router.tkernel.org \
    --to=iu87m888m@qq.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