* [PATCH v3] m68k: amiga: remove redundant amiga_reset prototype
@ 2026-06-29 12:04 Thorsten Blum
2026-08-10 9:29 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-06-29 12:04 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Thorsten Blum, Daniel Palmer, linux-m68k, linux-kernel
Remove the redundant amiga_reset() prototype and mark the first one as
__noreturn instead.
Tested-by: Daniel Palmer <daniel@thingy.jp>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
Changes in v3:
- Fix patch description and drop __noreturn from the definition (Geert)
- v2: https://lore.kernel.org/r/20260626145731.64010-2-thorsten.blum@linux.dev/
Changes in v2:
- Specify the __noreturn attribute before the function name to avoid a
compile-time error (Daniel)
- v1: https://lore.kernel.org/r/20260626104142.3782-2-thorsten.blum@linux.dev/
---
arch/m68k/amiga/config.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c
index 242d18e750b0..6e89e7f7e98b 100644
--- a/arch/m68k/amiga/config.c
+++ b/arch/m68k/amiga/config.c
@@ -96,7 +96,7 @@ static char amiga_model_name[13] = "Amiga ";
static void amiga_sched_init(void);
static void amiga_get_model(char *model);
static void amiga_get_hardware_list(struct seq_file *m);
-static void amiga_reset(void);
+static void amiga_reset(void) __noreturn;
static void amiga_mem_console_write(struct console *co, const char *b,
unsigned int count);
#ifdef CONFIG_HEARTBEAT
@@ -543,8 +543,6 @@ static u64 amiga_read_clk(struct clocksource *cs)
return ticks;
}
-static void amiga_reset(void) __noreturn;
-
static void amiga_reset(void)
{
unsigned long jmp_addr040 = virt_to_phys(&&jmp_addr_label040);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v3] m68k: amiga: remove redundant amiga_reset prototype
2026-06-29 12:04 [PATCH v3] m68k: amiga: remove redundant amiga_reset prototype Thorsten Blum
@ 2026-08-10 9:29 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2026-08-10 9:29 UTC (permalink / raw)
To: Thorsten Blum; +Cc: Daniel Palmer, linux-m68k, linux-kernel
On Mon, 29 Jun 2026 at 14:05, Thorsten Blum <thorsten.blum@linux.dev> wrote:
> Remove the redundant amiga_reset() prototype and mark the first one as
> __noreturn instead.
>
> Tested-by: Daniel Palmer <daniel@thingy.jp>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> Changes in v3:
> - Fix patch description and drop __noreturn from the definition (Geert)
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
i.e. will queue in the m68k tree for v7.3.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-10 9:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 12:04 [PATCH v3] m68k: amiga: remove redundant amiga_reset prototype Thorsten Blum
2026-08-10 9:29 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®