From nobody Thu Dec 18 00:12:09 2025 Received: from cmccmta1.chinamobile.com (cmccmta4.chinamobile.com [111.22.67.137]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD7C01591EA for ; Wed, 18 Dec 2024 08:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.137 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734512308; cv=none; b=fvku1xUA+MX9U1qsH/tGZsV7QR5Blbe6mnr5fKh99SfLP52VWEA1jpHJjrviQ+MG+/QvRKOI1+c/exRkskhiNNNql1YcdAir2fZcFqyqHOa3z4+RYAMT4nyu2jPyGcrcbTBBtg1c0gtXLLG72Z7VBc3YiMQ77ITg8/4/mw8hbLQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734512308; c=relaxed/simple; bh=p8DpvzbfqeDTJMffXQkLLbTD1b0QmlbYpI6bUc0ip/U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=oEYpp8ByRBOg2X7tiETRy6zYZD2Rv/oj3VpiMnE5Bje7bz8X99+Lq2+75lqlvD/vGy/qGMfw6U+BHdW4K46VIVTlAKvsk79yIctxhMAOfFcTDKfBxjDtUWiFsMkDdo6r7LT/qVO3Ed0AIWe0xSpI7zcCoNPJQs3YJhmi+3pICkU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.137 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app04-12004 (RichMail) with SMTP id 2ee467628def143-14a6f; Wed, 18 Dec 2024 16:55:13 +0800 (CST) X-RM-TRANSID: 2ee467628def143-14a6f X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.103]) by rmsmtp-syy-appsvr07-12007 (RichMail) with SMTP id 2ee767628dda8b7-a8e6f; Wed, 18 Dec 2024 16:55:12 +0800 (CST) X-RM-TRANSID: 2ee767628dda8b7-a8e6f From: Zhou Ding To: Thomas Gleixner Cc: Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , linux-kernel@vger.kernel.org, Zhou Ding Subject: [PATCH] x86, boot: Fix missing `has_cpuflag` prototype Date: Wed, 18 Dec 2024 00:28:59 +0800 Message-Id: <20241217162859.1167889-1-zhouding@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable We get 1 warning when building kernel withW=3D1: arch/x86/boot/compressed/cpuflags.c:4:6: warning: no previous prototype for= =E2=80=98has_cpuflag=E2=80=99 [-Werror=3Dmissing-prototypes] 4 | bool has_cpuflag(int flag) | ^~~~~~~~~~~ Add a function declaration to cpuflags.h Signed-off-by: Zhou Ding --- 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); =20 #endif --=20 2.33.0