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
4747 void __handle_sysrq(int key, bool check_mask);
4848 int register_sysrq_key(int key, const struct sysrq_key_op *op);
4949 int unregister_sysrq_key(int key, const struct sysrq_key_op *op);
50−extern struct sysrq_key_op *__sysrq_reboot_op;
50+extern const struct sysrq_key_op *__sysrq_reboot_op;
5151
5252 int sysrq_toggle_support(int enable_mask);
5353 int sysrq_mask(void);