diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-08-07 19:24:30 -0600 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-08-07 19:24:30 -0600 |
| commit | 9e29ec46f736c485eddd2e8a4d774f131964ba47 (patch) | |
| tree | a5c3ac5e49e5acab26322e60ec9f29e17704ce53 | |
| parent | 627c32d418108bd298e255709d51b9d6db6ef8b9 (diff) | |
| download | linux-9e29ec46f736c485eddd2e8a4d774f131964ba47.tar.gz linux-9e29ec46f736c485eddd2e8a4d774f131964ba47.zip | |
riscv: Mark default_power_off() as __noreturn
Since default_power_off() never returns, annotate it with the __noreturn
attribute to improve compiler optimizations.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260727100339.410466-2-thorsten.blum@linux.dev
Signed-off-by: Paul Walmsley <pjw@kernel.org>
| -rw-r--r-- | arch/riscv/kernel/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/reset.c b/arch/riscv/kernel/reset.c index 541e2162c85a..14eb08a6db85 100644 --- a/arch/riscv/kernel/reset.c +++ b/arch/riscv/kernel/reset.c @@ -7,7 +7,7 @@ #include <linux/reboot.h> #include <linux/pm.h> -static void default_power_off(void) +static void __noreturn default_power_off(void) { while (1) wait_for_interrupt(); |
