lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <174058155738.10177.10551712962774765029.tip-bot2@tip-bot2>
Date: Wed, 26 Feb 2025 14:52:37 -0000
From: "tip-bot2 for Zhou Ding" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Zhou Ding <zhouding@...s.chinamobile.com>, Ingo Molnar <mingo@...nel.org>,
 x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: x86/boot] x86/boot: Add missing has_cpuflag() prototype

The following commit has been merged into the x86/boot branch of tip:

Commit-ID:     7d8f03f7dd9f7d108b8d5af12fdc57e10555981f
Gitweb:        https://git.kernel.org/tip/7d8f03f7dd9f7d108b8d5af12fdc57e10555981f
Author:        Zhou Ding <zhouding@...s.chinamobile.com>
AuthorDate:    Wed, 18 Dec 2024 00:28:59 +08:00
Committer:     Ingo Molnar <mingo@...nel.org>
CommitterDate: Wed, 26 Feb 2025 15:40:23 +01:00

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@...s.chinamobile.com>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Link: https://lore.kernel.org/r/20241217162859.1167889-1-zhouding@cmss.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 475b8fd..fdcc2aa 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ