From nobody Mon Feb 9 17:40:31 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E839DC77B73 for ; Wed, 31 May 2023 09:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235391AbjEaJs5 (ORCPT ); Wed, 31 May 2023 05:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235636AbjEaJsv (ORCPT ); Wed, 31 May 2023 05:48:51 -0400 Received: from forward103c.mail.yandex.net (forward103c.mail.yandex.net [178.154.239.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40B23186 for ; Wed, 31 May 2023 02:48:47 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:4212:0:640:eaad:0]) by forward103c.mail.yandex.net (Yandex) with ESMTP id 4A3776012A; Wed, 31 May 2023 12:48:45 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id PmJIwTgDTSw0-d00CHH58; Wed, 31 May 2023 12:48:44 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1685526524; bh=/+yrP7PJJrDTJFlfec0Z4gx8SGYdj6Pp6yB3C+HFcFA=; h=Message-Id:Date:Cc:Subject:To:From; b=osGjz3xkoP0YDkppDo8ILcDt0r6Uw3SsAsyXcheW034TzenmBUZsE9+wPQOrLsbH8 S/u0uX1fwwwZoQv5UnHJ5zU8Ro/pckcycPT8j6/dIhLD+3FeXskKlsC2BBvHPGHXi3 W0/GRN6PvftQqQqW4mNHb39hPDDz73uLbX+mHU6s= Authentication-Results: mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Ingo Molnar Cc: Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, Dmitry Antipov , Dmitriy Antipov Subject: [PATCH] x86: add prototypes to fix 'make LLVM=1 W=1' build Date: Wed, 31 May 2023 12:47:46 +0300 Message-Id: <20230531094746.114547-1-dmantipov@yandex.ru> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add prototypes required to fix the following 'make LLVM=3D1 W=3D1' build errors: arch/x86/entry/common.c:238:24: error: no previous prototype for function 'do_SYSENTER_32' [-Werror,-Wmissing-prototypes] __visible noinstr long do_SYSENTER_32(struct pt_regs *regs) ^ arch/x86/entry/common.c:302:24: error: no previous prototype for function 'xen_pv_evtchn_do_upcall' [-Werror,-Wmissing-prototypes] __visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs) ^ Signed-off-by: Dmitriy Antipov --- arch/x86/include/asm/syscall.h | 4 ++++ arch/x86/include/asm/xen/events.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index 5b85987a5e97..b7929c27dc4f 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -132,4 +132,8 @@ long do_fast_syscall_32(struct pt_regs *regs); =20 #endif /* CONFIG_X86_32 */ =20 +#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION) +extern __visible noinstr long do_SYSENTER_32(struct pt_regs *regs); +#endif + #endif /* _ASM_X86_SYSCALL_H */ diff --git a/arch/x86/include/asm/xen/events.h b/arch/x86/include/asm/xen/e= vents.h index 62bdceb594f1..8177aa839e7c 100644 --- a/arch/x86/include/asm/xen/events.h +++ b/arch/x86/include/asm/xen/events.h @@ -34,5 +34,7 @@ static inline bool xen_support_evtchn_rebind(void) return (!xen_hvm_domain() || xen_have_vector_callback); } =20 +extern __visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs= ); + extern bool xen_percpu_upcall; #endif /* _ASM_X86_XEN_EVENTS_H */ --=20 2.40.1