Skip to content

Commit

Permalink
x86/boot: Add missing has_cpuflag() prototype
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Zhou Ding authored and Ingo Molnar committed Feb 26, 2025
1 parent a2498e5 commit 7d8f03f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/boot/cpuflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7d8f03f

Please sign in to comment.