[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240311132306.3420135-3-max.kellermann@ionos.com>
Date: Mon, 11 Mar 2024 14:22:58 +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 03/11] arch/alpha/bugs: include <linux/cpu.h> to fix -Wmissing-prototypes
Fixes:
arch/alpha/kernel/bugs.c:19:9: error: no previous prototype for 'cpu_show_meltdown' [-Werror=missing-prototypes]
19 | ssize_t cpu_show_meltdown(struct device *dev,
| ^~~~~~~~~~~~~~~~~
[...]
Signed-off-by: Max Kellermann <max.kellermann@...os.com>
---
arch/alpha/kernel/bugs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/alpha/kernel/bugs.c b/arch/alpha/kernel/bugs.c
index 6a16559c1a8f..d6ee9a30698d 100644
--- a/arch/alpha/kernel/bugs.c
+++ b/arch/alpha/kernel/bugs.c
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
+#include <linux/cpu.h> // prototypes for functions defined here
#include <asm/hwrpb.h>
#include <linux/device.h>
--
2.39.2
Powered by blists - more mailing lists