linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] m68k: mvme147: Make mvme147_sched_init() __init
@ 2024-09-29  2:55 Daniel Palmer
  2024-11-05 17:44 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Palmer @ 2024-09-29  2:55 UTC (permalink / raw)
  To: geert; +Cc: gerg, linux-m68k, linux-kernel, fthain, Daniel Palmer

mvme147_sched_init() is only used once at init time
so it can be made __init and save a few bytes of memory.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 arch/m68k/mvme147/config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/mvme147/config.c b/arch/m68k/mvme147/config.c
index 8b5dc07f0811..4279069fbb6e 100644
--- a/arch/m68k/mvme147/config.c
+++ b/arch/m68k/mvme147/config.c
@@ -34,7 +34,7 @@
 
 
 static void mvme147_get_model(char *model);
-extern void mvme147_sched_init(void);
+static void __init mvme147_sched_init(void);
 extern int mvme147_hwclk (int, struct rtc_time *);
 extern void mvme147_reset (void);
 
@@ -123,7 +123,7 @@ static irqreturn_t mvme147_timer_int (int irq, void *dev_id)
 }
 
 
-void mvme147_sched_init (void)
+static void __init mvme147_sched_init(void)
 {
 	if (request_irq(PCC_IRQ_TIMER1, mvme147_timer_int, IRQF_TIMER,
 			"timer 1", NULL))
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] m68k: mvme147: Make mvme147_sched_init() __init
  2024-09-29  2:55 [PATCH] m68k: mvme147: Make mvme147_sched_init() __init Daniel Palmer
@ 2024-11-05 17:44 ` Geert Uytterhoeven
  0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2024-11-05 17:44 UTC (permalink / raw)
  To: Daniel Palmer; +Cc: gerg, linux-m68k, linux-kernel, fthain

On Sun, Sep 29, 2024 at 4:55 AM Daniel Palmer <daniel@0x0f.com> wrote:
> mvme147_sched_init() is only used once at init time
> so it can be made __init and save a few bytes of memory.
>
> Signed-off-by: Daniel Palmer <daniel@0x0f.com>

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
i.e. will queue in the m68k tree for v6.13.

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:[~2024-11-05 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-29  2:55 [PATCH] m68k: mvme147: Make mvme147_sched_init() __init Daniel Palmer
2024-11-05 17:44 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).