Skip to content

Commit 66bb1c9

Browse files
0x7f454c46gregkh
authored andcommitted
tty/sysrq: Export sysrq_mask(), sysrq_toggle_support()
Build fix for serial_core being module: ERROR: modpost: "sysrq_toggle_support" [drivers/tty/serial/serial_core.ko] undefined! ERROR: modpost: "sysrq_mask" [drivers/tty/serial/serial_core.ko] undefined! Fixes: eaee417 ("sysctl/sysrq: Remove __sysrq_enabled copy") Cc: Jiri Slaby <[email protected]> Reported-by: "kernelci.org bot" <[email protected]> Reported-by: Michael Ellerman <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Dmitry Safonov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3dc4db3 commit 66bb1c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/tty/sysrq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ int sysrq_mask(void)
7474
return 1;
7575
return sysrq_enabled;
7676
}
77+
EXPORT_SYMBOL_GPL(sysrq_mask);
7778

7879
/*
7980
* A value of 1 means 'all', other nonzero values are an op mask:
@@ -1058,6 +1059,7 @@ int sysrq_toggle_support(int enable_mask)
10581059

10591060
return 0;
10601061
}
1062+
EXPORT_SYMBOL_GPL(sysrq_toggle_support);
10611063

10621064
static int __sysrq_swap_key_ops(int key, struct sysrq_key_op *insert_op_p,
10631065
struct sysrq_key_op *remove_op_p)

0 commit comments

Comments
 (0)