linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tty/sysrq: Export sysrq_mask()
@ 2020-04-01 14:39 Dmitry Safonov
  2020-04-01 14:46 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Safonov @ 2020-04-01 14:39 UTC (permalink / raw)
  To: linux-kernel, Greg Kroah-Hartman
  Cc: Dmitry Safonov, Dmitry Safonov, kernelci.org bot,
	Michael Ellerman, Jiri Slaby

Build fix for serial_core being module:
  ERROR: modpost: "sysrq_mask" [drivers/tty/serial/serial_core.ko] undefined!

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Dmitry Safonov <dima@arista.com>
---
 drivers/tty/sysrq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c
index 5e0d0813da55..a0760bcd7a97 100644
--- a/drivers/tty/sysrq.c
+++ b/drivers/tty/sysrq.c
@@ -74,6 +74,7 @@ int sysrq_mask(void)
 		return 1;
 	return sysrq_enabled;
 }
+EXPORT_SYMBOL_GPL(sysrq_mask);
 
 /*
  * A value of 1 means 'all', other nonzero values are an op mask:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-20 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 14:39 [PATCH] tty/sysrq: Export sysrq_mask() Dmitry Safonov
2020-04-01 14:46 ` Greg Kroah-Hartman
2020-04-01 14:49   ` Dmitry Safonov
2020-04-01 15:12     ` Greg Kroah-Hartman
2020-04-02  1:45       ` Michael Ellerman
2020-04-03 21:53         ` Dave Airlie
2020-04-20 17:34           ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).