summaryrefslogtreecommitdiffstats
path: root/kernel/printk/printk.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2023-01-19 14:56:38 +0100
committerPetr Mladek <pmladek@suse.com>2023-01-19 14:56:38 +0100
commit21493c6e96e550509ead696ecca9f0d7196ee91c (patch)
tree6c6a106d6459a7b140e61266dffd66c960dd298e /kernel/printk/printk.c
parentMerge tag 'printk-for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/p... (diff)
parentkernel/printk/printk.c: Fix W=1 kernel-doc warning (diff)
downloadlinux-21493c6e96e550509ead696ecca9f0d7196ee91c.tar.xz
linux-21493c6e96e550509ead696ecca9f0d7196ee91c.zip
Merge branch 'rework/console-list-lock' into for-linus
Diffstat (limited to 'kernel/printk/printk.c')
-rw-r--r--kernel/printk/printk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 7decf1e9c486..a5ed2e53547c 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -123,6 +123,7 @@ bool console_srcu_read_lock_is_held(void)
{
return srcu_read_lock_held(&console_srcu);
}
+EXPORT_SYMBOL(console_srcu_read_lock_is_held);
#endif
enum devkmsg_log_bits {
@@ -1891,6 +1892,7 @@ static void console_lock_spinning_enable(void)
/**
* console_lock_spinning_disable_and_check - mark end of code where another
* thread was able to busy wait and check if there is a waiter
+ * @cookie: cookie returned from console_srcu_read_lock()
*
* This is called at the end of the section where spinning is allowed.
* It has two functions. First, it is a signal that it is no longer