diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2020-05-13 22:43:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-15 14:53:19 +0200 |
commit | 7fffe31d3eaa2f08bdfde2403adcaa8029f9bea4 (patch) | |
tree | 4af8c48c07a41a8b2dbedea507d0fc17bbf9078a /include/linux/sysrq.h | |
parent | 23cbedf812ff7c7751582928e32d953d84c1c821 (diff) | |
download | lwn-7fffe31d3eaa2f08bdfde2403adcaa8029f9bea4.tar.gz lwn-7fffe31d3eaa2f08bdfde2403adcaa8029f9bea4.zip |
tty/sysrq: constify the the sysrq_key_op(s)
All the users threat them as immutable - annotate them as such.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://lore.kernel.org/r/20200513214351.2138580-3-emil.l.velikov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/sysrq.h')
-rw-r--r-- | include/linux/sysrq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sysrq.h b/include/linux/sysrq.h index 479028391c08..3a582ec7a2f1 100644 --- a/include/linux/sysrq.h +++ b/include/linux/sysrq.h @@ -47,7 +47,7 @@ void handle_sysrq(int key); void __handle_sysrq(int key, bool check_mask); int register_sysrq_key(int key, const struct sysrq_key_op *op); int unregister_sysrq_key(int key, const struct sysrq_key_op *op); -extern struct sysrq_key_op *__sysrq_reboot_op; +extern const struct sysrq_key_op *__sysrq_reboot_op; int sysrq_toggle_support(int enable_mask); int sysrq_mask(void); |