From 3e00123a13d824d63072b1824c9da59cd78356d9 Mon Sep 17 00:00:00 2001 From: Enlin Mu Date: Tue, 15 Aug 2023 10:07:11 +0800 Subject: printk: export symbols for debug modules the module is out-of-tree, it saves kernel logs when panic Signed-off-by: Enlin Mu Acked-by: Petr Mladek Reviewed-by: Sergey Senozhatsky Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20230815020711.2604939-1-yunlong.xing@unisoc.com --- kernel/printk/printk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 9644f6e5bf15..accfd326e7a1 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -536,12 +536,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 -- cgit v1.2.3