Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2133180pxb; Mon, 23 Aug 2021 12:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLF7YAJEmiqbH6CE7etFbU73FxJ+gv/Zdqs0jJ5Gs1TmB7GHDbOMT05CXPyvHCU1SI9y0O X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr38860387edv.26.1629748023440; Mon, 23 Aug 2021 12:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629748023; cv=none; d=google.com; s=arc-20160816; b=ulRvZdY8/vgULQpdm80h3kojuAzDn/JfBXt0UnfvoJk8OF59iUhUTjuxlrkBGd/0Kt fJ07gxuAo26NY82WHBeRGi49oyfhCe6TvEmogaznPGS14nlTCOyNQ+SjcXfaynQ2i2zz CqX8mqJ9etGiRdijO4yOiTJMAViYd+oFOSb/QB6OF3fr7Bv0qkiXq/fSTiMCh2wW4qGX P+1donn1bueCrWpJ42/l8G6czonVyD4wXMlb8JkgWuleOaBB3UztCAc0mwYdLmXBihvQ iWg2185wwXxnUPT3NxJDYEwzZ1vEhlinbQzjPsj5R9qHClmBDuKNfvg/N266S+C7oot0 gkZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7KwRhm2sTocXwEJarLiY5c63owI3J860DzvYo8UM4I8=; b=BiXP77+01q/CC+/YqwJaLYByNR6F9u3JogcToXPP2lXIi0dkhxSkFWfz8G7IIWLooW 6Q62C450dZAbPpe52JvuuwSwLRqubjcaSNMQRda9rPiP1KqF/ckWPGKAZ064nWGa6fNX ZKh2PQot3W3F+AEcfmTcB5lKunRu5BqSbrNN9YPS1Rp3L0nvPNEB4SFoK5KlmeUwBL+m 0Ah2G60hAE2Jv9vmI/ZrhSaHLDLtebsZ7fGOIjS2/AN3hy08IjnKZoL1mOxSttwKDfMj Bp1CMMYD+aIHgME8H+BDd0+Jd4vDTR6Hw46oJw3xjbmrbGcfD1TT+NG075J7oLbOxE3x EzVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZMOl0Ukl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si16542190ejy.322.2021.08.23.12.46.39; Mon, 23 Aug 2021 12:47:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZMOl0Ukl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232085AbhHWTpy (ORCPT + 99 others); Mon, 23 Aug 2021 15:45:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230187AbhHWTpu (ORCPT ); Mon, 23 Aug 2021 15:45:50 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF29BC061575; Mon, 23 Aug 2021 12:45:07 -0700 (PDT) Received: from zn.tnic (p200300ec2f07d9004625a010a35f3837.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:d900:4625:a010:a35f:3837]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 40FB61EC0464; Mon, 23 Aug 2021 21:45:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1629747902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=7KwRhm2sTocXwEJarLiY5c63owI3J860DzvYo8UM4I8=; b=ZMOl0Uklc7bTZqwVps5ltCyOrz0+FYqz+dpP/aACFQ5Dos6WO4MgcEOy3r0FBiZjU+kJ+5 N0XA+EgVhoccBaK31KeyV4yvoOZ6kurVQy4BmaOX4gvBTG52GczLHUiF4GOTbuMVEr85yf 6fDl9R5iUfEDGLSzg2RsxzO59rtBet8= Date: Mon, 23 Aug 2021 21:45:44 +0200 From: Borislav Petkov To: Brijesh Singh Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: [PATCH] x86/sev: Remove do_early_exception() forward declarations Message-ID: References: <20210820151933.22401-1-brijesh.singh@amd.com> <20210820151933.22401-14-brijesh.singh@amd.com> <815a054a-b0a2-e549-8d1c-086540521979@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <815a054a-b0a2-e549-8d1c-086540521979@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 23, 2021 at 01:56:06PM -0500, Brijesh Singh wrote: > thanks, I will merge this in next version. Thx. One more thing I stumbled upon while staring at this, see below. Can you add it to your set or should I simply apply it now? Thx. --- From: Borislav Petkov Date: Mon, 23 Aug 2021 20:01:35 +0200 Subject: [PATCH] x86/sev: Remove do_early_exception() forward declarations There's a perfectly fine prototype in the asm/setup.h header. Use it. No functional changes. Signed-off-by: Borislav Petkov --- arch/x86/kernel/sev.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/kernel/sev.c b/arch/x86/kernel/sev.c index a6895e440bc3..700ef31d32f8 100644 --- a/arch/x86/kernel/sev.c +++ b/arch/x86/kernel/sev.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -96,9 +97,6 @@ struct ghcb_state { static DEFINE_PER_CPU(struct sev_es_runtime_data*, runtime_data); DEFINE_STATIC_KEY_FALSE(sev_es_enable_key); -/* Needed in vc_early_forward_exception */ -void do_early_exception(struct pt_regs *regs, int trapnr); - static void __init setup_vc_stacks(int cpu) { struct sev_es_runtime_data *data; @@ -240,9 +238,6 @@ static noinstr struct ghcb *__sev_get_ghcb(struct ghcb_state *state) return ghcb; } -/* Needed in vc_early_forward_exception */ -void do_early_exception(struct pt_regs *regs, int trapnr); - static inline u64 sev_es_rd_ghcb_msr(void) { return __rdmsr(MSR_AMD64_SEV_ES_GHCB); -- 2.29.2 -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette