History

tty/sysrq: constify the the sysrq_key_op(s)

All the users threat them as immutable - annotate them as such.

Emil Velikov committed 6 years ago

Commit 7fffe311 parent 23cbedf2 files · +27 −27Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/sysrq.h+1−1
@@ -47,7 +47,7 @@ void handle_sysrq(int key); · 46 unmodified lines
47void __handle_sysrq(int key, bool check_mask);47void __handle_sysrq(int key, bool check_mask);
48int register_sysrq_key(int key, const struct sysrq_key_op *op);48int register_sysrq_key(int key, const struct sysrq_key_op *op);
49int unregister_sysrq_key(int key, const struct sysrq_key_op *op);49int unregister_sysrq_key(int key, const struct sysrq_key_op *op);
50extern struct sysrq_key_op *__sysrq_reboot_op;50extern const struct sysrq_key_op *__sysrq_reboot_op;
51 51
52int sysrq_toggle_support(int enable_mask);52int sysrq_toggle_support(int enable_mask);
53int sysrq_mask(void);53int sysrq_mask(void);