mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-12-04 20:50:57 -06: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:
committed by
Paul Walmsley
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();
|
||||
|
||||
Reference in New Issue
Block a user