[PATCH 09/11] arch/alpha/fpreg: add missing includes to fix -Wmissing-prototypes

From: Max Kellermann
Date: Mon Mar 11 2024 - 09:25:03 EST


Fixes:

arch/alpha/lib/fpreg.c:20:1: error: no previous prototype for 'alpha_read_fp_reg' [-Werror=missing-prototypes]
20 | alpha_read_fp_reg (unsigned long reg)
| ^~~~~~~~~~~~~~~~~
[...]

Signed-off-by: Max Kellermann <max.kellermann@xxxxxxxxx>
---
arch/alpha/lib/fpreg.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/alpha/lib/fpreg.c b/arch/alpha/lib/fpreg.c
index 7c08b225261c..88e912689140 100644
--- a/arch/alpha/lib/fpreg.c
+++ b/arch/alpha/lib/fpreg.c
@@ -5,9 +5,12 @@
* (C) Copyright 1998 Linus Torvalds
*/

+#include "../kernel/proto.h"
+
#include <linux/compiler.h>
#include <linux/export.h>
#include <linux/preempt.h>
+#include <asm/fpu.h>
#include <asm/thread_info.h>

#if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67)
--
2.39.2