[PATCH] printk: export symbols for debug modules
From: Yunlong Xing
Date: Mon Aug 14 2023 - 22:09:16 EST
From: Enlin Mu <enlin.mu@xxxxxxxxxx>
the module is out-of-tree, it saves kernel logs when panic
Signed-off-by: Enlin Mu <enlin.mu@xxxxxxxxxx>
---
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