Skip to content

Commit 7d8f03f

Browse files
Zhou DingIngo Molnar
authored andcommitted
x86/boot: Add missing has_cpuflag() prototype
We get a warning when building the kernel with W=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@cmss.chinamobile.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20241217162859.1167889-1-zhouding@cmss.chinamobile.com
1 parent a2498e5 commit 7d8f03f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/boot/cpuflags.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ extern u32 cpu_vendor[3];
1818
int has_eflag(unsigned long mask);
1919
void get_cpuflags(void);
2020
void cpuid_count(u32 id, u32 count, u32 *a, u32 *b, u32 *c, u32 *d);
21+
bool has_cpuflag(int flag);
2122

2223
#endif

0 commit comments

Comments
 (0)