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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
23cbedf812
commit
7fffe31d3e
@@ -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);
|
||||
|
Reference in New Issue
Block a user