mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
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:
parent
627c32d418
commit
9e29ec46f7
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user