[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230815020711.2604939-1-yunlong.xing@unisoc.com>
Date: Tue, 15 Aug 2023 10:07:11 +0800
From: Yunlong Xing <yunlong.xing@...soc.com>
To: <pmladek@...e.com>, <senozhatsky@...omium.org>,
<rostedt@...dmis.org>, <john.ogness@...utronix.de>
CC: <linux-kernel@...r.kernel.org>, <enlinmu@...il.com>,
<enlin.mu@...soc.com>, <yunlong.xing23@...il.com>
Subject: [PATCH] printk: export symbols for debug modules
From: Enlin Mu <enlin.mu@...soc.com>
the module is out-of-tree, it saves kernel logs when panic
Signed-off-by: Enlin Mu <enlin.mu@...soc.com>
---
kernel/printk/printk.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 357a4d18f638..f381442512b3 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -538,12 +538,14 @@ char *log_buf_addr_get(void)
{
return log_buf;
}
+EXPORT_SYMBOL_GPL(log_buf_addr_get);
/* Return log buffer size */
u32 log_buf_len_get(void)
{
return log_buf_len;
}
+EXPORT_SYMBOL_GPL(log_buf_len_get);
/*
* Define how much of the log buffer we could take at maximum. The value
--
2.25.1
Powered by blists - more mailing lists