hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/kernel/power/poweroff.c
....@@ -1,7 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * poweroff.c - sysrq handler to gracefully power down machine.
3
- *
4
- * This file is released under the GPL v2
54 */
65
76 #include <linux/kernel.h>
....@@ -30,7 +29,7 @@
3029 schedule_work_on(cpumask_first(cpu_online_mask), &poweroff_work);
3130 }
3231
33
-static struct sysrq_key_op sysrq_poweroff_op = {
32
+static const struct sysrq_key_op sysrq_poweroff_op = {
3433 .handler = handle_poweroff,
3534 .help_msg = "poweroff(o)",
3635 .action_msg = "Power Off",