2023-08-15 05:51:18

by Yunlong Xing

[permalink] [raw]
Subject: [PATCH] printk: export symbols for debug modules

From: Enlin Mu <[email protected]>

the module is out-of-tree, it saves kernel logs when panic

Signed-off-by: Enlin Mu <[email protected]>
---
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