[PATCH 3/3] printk: move CONSOLE_EXT_LOG_MAX to kernel/printk/printk.c
From: Masahiro Yamada
Date: Tue Feb 02 2021 - 02:07:26 EST
This macro is only used in kernel/printk/printk.c
Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
---
include/linux/printk.h | 2 --
kernel/printk/printk.c | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/printk.h b/include/linux/printk.h
index ceaf0486c01c..d2c9c2a6e471 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -44,8 +44,6 @@ static inline const char *printk_skip_headers(const char *buffer)
return buffer;
}
-#define CONSOLE_EXT_LOG_MAX 8192
-
/* We show everything that is MORE important than this.. */
#define CONSOLE_LOGLEVEL_SILENT 0 /* Mum's the word */
#define CONSOLE_LOGLEVEL_DEBUG 10 /* issue debug messages */
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 7b50298d52e3..d83a5860fe93 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -617,6 +617,8 @@ static ssize_t msg_print_ext_body(char *buf, size_t size,
return len;
}
+#define CONSOLE_EXT_LOG_MAX 8192
+
/* /dev/kmsg - userspace message inject/listen interface */
struct devkmsg_user {
u64 seq;
--
2.27.0