diff options
author | Enlin Mu <enlin.mu@unisoc.com> | 2023-08-15 05:07:11 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2023-08-16 18:06:38 +0300 |
commit | 3e00123a13d824d63072b1824c9da59cd78356d9 (patch) | |
tree | 17ab1d56194b6813edb26c1cb6af0d5faa5405f1 /kernel/printk/printk.c | |
parent | 92382d744176f230101d54f5c017bccd62770f01 (diff) | |
download | linux-3e00123a13d824d63072b1824c9da59cd78356d9.tar.xz |
printk: export symbols for debug modules
the module is out-of-tree, it saves kernel logs when panic
Signed-off-by: Enlin Mu <enlin.mu@unisoc.com>
Acked-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230815020711.2604939-1-yunlong.xing@unisoc.com
Diffstat (limited to 'kernel/printk/printk.c')
-rw-r--r-- | kernel/printk/printk.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |