summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDU HUANPENG <u74147@gmail.com>2019-10-03 21:52:12 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-14 14:04:42 +0200
commitea13321caf5597b7f07352ddba88c86999530de8 (patch)
tree9e11176388c7563194c0235292c416409c0f63d2
parent215ca50f876d7fc189bfb69ba2a2f5fef38305b1 (diff)
downloadbarebox-ea13321caf5597b7f07352ddba88c86999530de8.tar.gz
fix compile error when set CONFIG_CONSOLE_SIMPLE=y
Signed-off-by: DU HUANPENG <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/console_simple.c12
1 files changed, 12 insertions, 0 deletions
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)