[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240311132306.3420135-7-max.kellermann@ionos.com>
Date: Mon, 11 Mar 2024 14:23:02 +0100
From: Max Kellermann <max.kellermann@...os.com>
To: richard.henderson@...aro.org,
	ink@...assic.park.msu.ru,
	mattst88@...il.com,
	linux-alpha@...r.kernel.org,
	linux-kernel@...r.kernel.org
Cc: Max Kellermann <max.kellermann@...os.com>
Subject: [PATCH 07/11] arch/alpha/perf_event: make init_hw_perf_events() static
This function is only used within this source file.  Fixes
`-Wmissing-prototypes`:
 arch/alpha/kernel/perf_event.c:873:12: error: no previous prototype for 'init_hw_perf_events' [-Werror=missing-prototypes]
   873 | int __init init_hw_perf_events(void)
       |            ^~~~~~~~~~~~~~~~~~~
Signed-off-by: Max Kellermann <max.kellermann@...os.com>
---
 arch/alpha/kernel/perf_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/alpha/kernel/perf_event.c b/arch/alpha/kernel/perf_event.c
index ccdb508c1516..1f0eb4f25c0f 100644
--- a/arch/alpha/kernel/perf_event.c
+++ b/arch/alpha/kernel/perf_event.c
@@ -870,7 +870,7 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr,
 /*
  * Init call to initialise performance events at kernel startup.
  */
-int __init init_hw_perf_events(void)
+static int __init init_hw_perf_events(void)
 {
 	pr_info("Performance events: ");
 
-- 
2.39.2
Powered by blists - more mailing lists
 
