| @@ -98,7 +98,7 @@ static int __init sysrq_always_enabled_setup(char *str) · 97 unmodified lines |
| 98 | __setup("sysrq_always_enabled", sysrq_always_enabled_setup); | 98 | __setup("sysrq_always_enabled", sysrq_always_enabled_setup); |
| 99 | | 99 | |
| 100 | | 100 | |
| 101 | static void sysrq_handle_loglevel(int key) | 101 | static void sysrq_handle_loglevel(u8 key) |
| 102 | { | 102 | { |
| 103 | u8 loglevel = key - '0'; | 103 | u8 loglevel = key - '0'; |
| 104 | | 104 | |
| @@ -114,7 +114,7 @@ static const struct sysrq_key_op sysrq_loglevel_op = { · 9 unmodified lines |
| 114 | }; | 114 | }; |
| 115 | | 115 | |
| 116 | #ifdef CONFIG_VT | 116 | #ifdef CONFIG_VT |
| 117 | static void sysrq_handle_SAK(int key) | 117 | static void sysrq_handle_SAK(u8 key) |
| 118 | { | 118 | { |
| 119 | struct work_struct *SAK_work = &vc_cons[fg_console].SAK_work; | 119 | struct work_struct *SAK_work = &vc_cons[fg_console].SAK_work; |
| 120 | | 120 | |
| @@ -131,7 +131,7 @@ static const struct sysrq_key_op sysrq_SAK_op = { · 10 unmodified lines |
| 131 | #endif | 131 | #endif |
| 132 | | 132 | |
| 133 | #ifdef CONFIG_VT | 133 | #ifdef CONFIG_VT |
| 134 | static void sysrq_handle_unraw(int key) | 134 | static void sysrq_handle_unraw(u8 key) |
| 135 | { | 135 | { |
| 136 | vt_reset_unicode(fg_console); | 136 | vt_reset_unicode(fg_console); |
| 137 | } | 137 | } |
| @@ -146,7 +146,7 @@ static const struct sysrq_key_op sysrq_unraw_op = { · 8 unmodified lines |
| 146 | #define sysrq_unraw_op (*(const struct sysrq_key_op *)NULL) | 146 | #define sysrq_unraw_op (*(const struct sysrq_key_op *)NULL) |
| 147 | #endif /* CONFIG_VT */ | 147 | #endif /* CONFIG_VT */ |
| 148 | | 148 | |
| 149 | static void sysrq_handle_crash(int key) | 149 | static void sysrq_handle_crash(u8 key) |
| 150 | { | 150 | { |
| 151 | /* release the RCU read lock before crashing */ | 151 | /* release the RCU read lock before crashing */ |
| 152 | rcu_read_unlock(); | 152 | rcu_read_unlock(); |
| @@ -160,7 +160,7 @@ static const struct sysrq_key_op sysrq_crash_op = { · 7 unmodified lines |
| 160 | .enable_mask = SYSRQ_ENABLE_DUMP, | 160 | .enable_mask = SYSRQ_ENABLE_DUMP, |
| 161 | }; | 161 | }; |
| 162 | | 162 | |
| 163 | static void sysrq_handle_reboot(int key) | 163 | static void sysrq_handle_reboot(u8 key) |
| 164 | { | 164 | { |
| 165 | lockdep_off(); | 165 | lockdep_off(); |
| 166 | local_irq_enable(); | 166 | local_irq_enable(); |
| @@ -175,7 +175,7 @@ static const struct sysrq_key_op sysrq_reboot_op = { · 8 unmodified lines |
| 175 | | 175 | |
| 176 | const struct sysrq_key_op *__sysrq_reboot_op = &sysrq_reboot_op; | 176 | const struct sysrq_key_op *__sysrq_reboot_op = &sysrq_reboot_op; |
| 177 | | 177 | |
| 178 | static void sysrq_handle_sync(int key) | 178 | static void sysrq_handle_sync(u8 key) |
| 179 | { | 179 | { |
| 180 | emergency_sync(); | 180 | emergency_sync(); |
| 181 | } | 181 | } |
| @@ -186,7 +186,7 @@ static const struct sysrq_key_op sysrq_sync_op = { · 4 unmodified lines |
| 186 | .enable_mask = SYSRQ_ENABLE_SYNC, | 186 | .enable_mask = SYSRQ_ENABLE_SYNC, |
| 187 | }; | 187 | }; |
| 188 | | 188 | |
| 189 | static void sysrq_handle_show_timers(int key) | 189 | static void sysrq_handle_show_timers(u8 key) |
| 190 | { | 190 | { |
| 191 | sysrq_timer_list_show(); | 191 | sysrq_timer_list_show(); |
| 192 | } | 192 | } |
| @@ -197,7 +197,7 @@ static const struct sysrq_key_op sysrq_show_timers_op = { · 4 unmodified lines |
| 197 | .action_msg = "Show clockevent devices & pending hrtimers (no others)", | 197 | .action_msg = "Show clockevent devices & pending hrtimers (no others)", |
| 198 | }; | 198 | }; |
| 199 | | 199 | |
| 200 | static void sysrq_handle_mountro(int key) | 200 | static void sysrq_handle_mountro(u8 key) |
| 201 | { | 201 | { |
| 202 | emergency_remount(); | 202 | emergency_remount(); |
| 203 | } | 203 | } |
| @@ -209,7 +209,7 @@ static const struct sysrq_key_op sysrq_mountro_op = { · 5 unmodified lines |
| 209 | }; | 209 | }; |
| 210 | | 210 | |
| 211 | #ifdef CONFIG_LOCKDEP | 211 | #ifdef CONFIG_LOCKDEP |
| 212 | static void sysrq_handle_showlocks(int key) | 212 | static void sysrq_handle_showlocks(u8 key) |
| 213 | { | 213 | { |
| 214 | debug_show_all_locks(); | 214 | debug_show_all_locks(); |
| 215 | } | 215 | } |
| @@ -249,7 +249,7 @@ static void sysrq_showregs_othercpus(struct work_struct *dummy) · 33 unmodified lines |
| 249 | | 249 | |
| 250 | static DECLARE_WORK(sysrq_showallcpus, sysrq_showregs_othercpus); | 250 | static DECLARE_WORK(sysrq_showallcpus, sysrq_showregs_othercpus); |
| 251 | | 251 | |
| 252 | static void sysrq_handle_showallcpus(int key) | 252 | static void sysrq_handle_showallcpus(u8 key) |
| 253 | { | 253 | { |
| 254 | /* | 254 | /* |
| 255 | * Fall back to the workqueue based printing if the | 255 | * Fall back to the workqueue based printing if the |
| @@ -282,7 +282,7 @@ static const struct sysrq_key_op sysrq_showallcpus_op = { · 26 unmodified lines |
| 282 | #define sysrq_showallcpus_op (*(const struct sysrq_key_op *)NULL) | 282 | #define sysrq_showallcpus_op (*(const struct sysrq_key_op *)NULL) |
| 283 | #endif | 283 | #endif |
| 284 | | 284 | |
| 285 | static void sysrq_handle_showregs(int key) | 285 | static void sysrq_handle_showregs(u8 key) |
| 286 | { | 286 | { |
| 287 | struct pt_regs *regs = NULL; | 287 | struct pt_regs *regs = NULL; |
| 288 | | 288 | |
| @@ -299,7 +299,7 @@ static const struct sysrq_key_op sysrq_showregs_op = { · 10 unmodified lines |
| 299 | .enable_mask = SYSRQ_ENABLE_DUMP, | 299 | .enable_mask = SYSRQ_ENABLE_DUMP, |
| 300 | }; | 300 | }; |
| 301 | | 301 | |
| 302 | static void sysrq_handle_showstate(int key) | 302 | static void sysrq_handle_showstate(u8 key) |
| 303 | { | 303 | { |
| 304 | show_state(); | 304 | show_state(); |
| 305 | show_all_workqueues(); | 305 | show_all_workqueues(); |
| @@ -311,7 +311,7 @@ static const struct sysrq_key_op sysrq_showstate_op = { · 5 unmodified lines |
| 311 | .enable_mask = SYSRQ_ENABLE_DUMP, | 311 | .enable_mask = SYSRQ_ENABLE_DUMP, |
| 312 | }; | 312 | }; |
| 313 | | 313 | |
| 314 | static void sysrq_handle_showstate_blocked(int key) | 314 | static void sysrq_handle_showstate_blocked(u8 key) |
| 315 | { | 315 | { |
| 316 | show_state_filter(TASK_UNINTERRUPTIBLE); | 316 | show_state_filter(TASK_UNINTERRUPTIBLE); |
| 317 | } | 317 | } |
| @@ -325,7 +325,7 @@ static const struct sysrq_key_op sysrq_showstate_blocked_op = { · 7 unmodified lines |
| 325 | #ifdef CONFIG_TRACING | 325 | #ifdef CONFIG_TRACING |
| 326 | #include <linux/ftrace.h> | 326 | #include <linux/ftrace.h> |
| 327 | | 327 | |
| 328 | static void sysrq_ftrace_dump(int key) | 328 | static void sysrq_ftrace_dump(u8 key) |
| 329 | { | 329 | { |
| 330 | ftrace_dump(DUMP_ALL); | 330 | ftrace_dump(DUMP_ALL); |
| 331 | } | 331 | } |
| @@ -339,7 +339,7 @@ static const struct sysrq_key_op sysrq_ftrace_dump_op = { · 7 unmodified lines |
| 339 | #define sysrq_ftrace_dump_op (*(const struct sysrq_key_op *)NULL) | 339 | #define sysrq_ftrace_dump_op (*(const struct sysrq_key_op *)NULL) |
| 340 | #endif | 340 | #endif |
| 341 | | 341 | |
| 342 | static void sysrq_handle_showmem(int key) | 342 | static void sysrq_handle_showmem(u8 key) |
| 343 | { | 343 | { |
| 344 | show_mem(0, NULL); | 344 | show_mem(0, NULL); |
| 345 | } | 345 | } |
| @@ -369,7 +369,7 @@ static void send_sig_all(int sig) · 23 unmodified lines |
| 369 | read_unlock(&tasklist_lock); | 369 | read_unlock(&tasklist_lock); |
| 370 | } | 370 | } |
| 371 | | 371 | |
| 372 | static void sysrq_handle_term(int key) | 372 | static void sysrq_handle_term(u8 key) |
| 373 | { | 373 | { |
| 374 | send_sig_all(SIGTERM); | 374 | send_sig_all(SIGTERM); |
| 375 | console_loglevel = CONSOLE_LOGLEVEL_DEBUG; | 375 | console_loglevel = CONSOLE_LOGLEVEL_DEBUG; |
| @@ -400,7 +400,7 @@ static void moom_callback(struct work_struct *ignored) · 24 unmodified lines |
| 400 | | 400 | |
| 401 | static DECLARE_WORK(moom_work, moom_callback); | 401 | static DECLARE_WORK(moom_work, moom_callback); |
| 402 | | 402 | |
| 403 | static void sysrq_handle_moom(int key) | 403 | static void sysrq_handle_moom(u8 key) |
| 404 | { | 404 | { |
| 405 | schedule_work(&moom_work); | 405 | schedule_work(&moom_work); |
| 406 | } | 406 | } |
| @@ -412,7 +412,7 @@ static const struct sysrq_key_op sysrq_moom_op = { · 5 unmodified lines |
| 412 | }; | 412 | }; |
| 413 | | 413 | |
| 414 | #ifdef CONFIG_BLOCK | 414 | #ifdef CONFIG_BLOCK |
| 415 | static void sysrq_handle_thaw(int key) | 415 | static void sysrq_handle_thaw(u8 key) |
| 416 | { | 416 | { |
| 417 | emergency_thaw_all(); | 417 | emergency_thaw_all(); |
| 418 | } | 418 | } |
| @@ -426,7 +426,7 @@ static const struct sysrq_key_op sysrq_thaw_op = { · 7 unmodified lines |
| 426 | #define sysrq_thaw_op (*(const struct sysrq_key_op *)NULL) | 426 | #define sysrq_thaw_op (*(const struct sysrq_key_op *)NULL) |
| 427 | #endif | 427 | #endif |
| 428 | | 428 | |
| 429 | static void sysrq_handle_kill(int key) | 429 | static void sysrq_handle_kill(u8 key) |
| 430 | { | 430 | { |
| 431 | send_sig_all(SIGKILL); | 431 | send_sig_all(SIGKILL); |
| 432 | console_loglevel = CONSOLE_LOGLEVEL_DEBUG; | 432 | console_loglevel = CONSOLE_LOGLEVEL_DEBUG; |
| @@ -438,7 +438,7 @@ static const struct sysrq_key_op sysrq_kill_op = { · 5 unmodified lines |
| 438 | .enable_mask = SYSRQ_ENABLE_SIGNAL, | 438 | .enable_mask = SYSRQ_ENABLE_SIGNAL, |
| 439 | }; | 439 | }; |
| 440 | | 440 | |
| 441 | static void sysrq_handle_unrt(int key) | 441 | static void sysrq_handle_unrt(u8 key) |
| 442 | { | 442 | { |
| 443 | normalize_rt_tasks(); | 443 | normalize_rt_tasks(); |
| 444 | } | 444 | } |