diff options
author | Enlin Mu <enlin.mu@unisoc.com> | 2023-08-15 04:07:11 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2023-08-16 17:06:38 +0200 |
commit | 3e00123a13d824d63072b1824c9da59cd78356d9 (patch) | |
tree | 17ab1d56194b6813edb26c1cb6af0d5faa5405f1 | |
parent | lib: test_scanf: Add explicit type cast to result initialization in test_numb... (diff) | |
download | linux-3e00123a13d824d63072b1824c9da59cd78356d9.tar.xz linux-3e00123a13d824d63072b1824c9da59cd78356d9.zip |
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
-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 |