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>
This commit is contained in:
Thorsten Blum 2026-08-07 19:24:30 -06:00 committed by Paul Walmsley
parent 627c32d418
commit 9e29ec46f7

View File

@ -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();