[PATCH 03/11] arch/alpha/bugs: include <linux/cpu.h> to fix -Wmissing-prototypes

From: Max Kellermann
Date: Mon Mar 11 2024 - 09:23:40 EST


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@xxxxxxxxx>
---
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