[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241217094350.1166239-1-zhouding@cmss.chinamobile.com>
Date: Tue, 17 Dec 2024 17:43:50 +0800
From: Zhou Ding <zhouding@...s.chinamobile.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>
Cc: Zhou Ding <zhouding@...s.chinamobile.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH] x86, boot: Fix missing `has_cpuflag` prototype
We get 1 warning when building kernel withW=1:
arch/x86/boot/compressed/cpuflags.c:4:6: warning: no previous prototype for ‘has_cpuflag’ [-Werror=missing-prototypes]
4 | bool has_cpuflag(int flag)
| ^~~~~~~~~~~
Add a function declaration to cpuflags.h
Signed-off-by: Zhou Ding <zhouding@...s.chinamobile.com>
---
arch/x86/boot/cpuflags.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/boot/cpuflags.h b/arch/x86/boot/cpuflags.h
index 475b8fde90f7..fdcc2aa4c3c4 100644
--- a/arch/x86/boot/cpuflags.h
+++ b/arch/x86/boot/cpuflags.h
@@ -18,5 +18,6 @@ extern u32 cpu_vendor[3];
int has_eflag(unsigned long mask);
void get_cpuflags(void);
void cpuid_count(u32 id, u32 count, u32 *a, u32 *b, u32 *c, u32 *d);
+bool has_cpuflag(int flag);
#endif
--
2.33.0
Powered by blists - more mailing lists