From patchwork Sat Jan 9 00:47:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 12007833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.6 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D616CC433E9 for ; Sat, 9 Jan 2021 00:49:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B559023AC2 for ; Sat, 9 Jan 2021 00:49:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbhAIAtU (ORCPT ); Fri, 8 Jan 2021 19:49:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbhAIAtO (ORCPT ); Fri, 8 Jan 2021 19:49:14 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10CDBC0617A9 for ; Fri, 8 Jan 2021 16:48:06 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id e74so17313959ybh.19 for ; Fri, 08 Jan 2021 16:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:reply-to:date:in-reply-to:message-id:mime-version:references :subject:from:to:cc; bh=kFsJmkb8M3ufAjXEZxfMS0MYb/t7DHhSQPFJmc4E3xo=; b=rwWV2rTcTh3ZbcOtWceFowsWqu8ZhEM+Zob5/myHWaq1UWg3OPjKSnndZK5sSABA8z /+p+ODXqLrx0qeslKe3E79H6kObTc1J6uBvTvEX8EPn8HW8nO/ywvYe3moIsuwj5otyY VraQ0gmOF6Ok0nKjiG0XDTDUOY39Vv8XxjJciWbj7oBpUyk5B7uD8221neIUcvwew7CE XvOwLpZ47hFnLaatlJhiBslX7xRVVP7FJbQVcGXYNqcLTs5iGuyg0jEzqF8pIXdvw7gL sKfm7inYaWjEALlOsq9qOOsnOpf9QMzVeMPUdedlw2HRaIzOB8Hk3etokpBeVi/SQclf 2qrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:date:in-reply-to:message-id :mime-version:references:subject:from:to:cc; bh=kFsJmkb8M3ufAjXEZxfMS0MYb/t7DHhSQPFJmc4E3xo=; b=p/MDNffAwBT3djwGQF0guyAoeSCFUK/Ck9CxPFjqpPsrEt2oJGzsMOsNKhhhJpAs4s x8kaztZ9kMhDUCNUDh/k0sVoct5E+YA6z00vr7MaBrZw2gS+62k8u28y1ztBZhqNAXtE /Pb/nl0o5mljmC4D2FhIxhyFuwHKVMaLzptGyw96oTjLOzRnE2zrNf/KebTl7NapY9UV Fma4HkiW/FfKUFLtFT6Me/hJxgrM8IDAu0HMJgUvp2O3a4fNkA5TzcSM9m01cK86ZT1j RcwoV9IlE5qlvRL/OX9AUGRLWA905QFS3PaB8l4nl3ilBD9jVkeRozYiq60QuXRvy93z goyQ== X-Gm-Message-State: AOAM531KQBkKx8b/GApWB1QjlEP4k3nEQDr2X4onzHXpfS28wdb+CQ/j v2CtIapSNT8pJMhHid8srejx5R23m0c= X-Google-Smtp-Source: ABdhPJy4XZ0rEH8KPPWmFdqnCvmHl68ytC6NY7FVMOSj9YpCUewZM24l9cH9T/l9Ot7RR2FnXxxPo9aOwHI= Sender: "seanjc via sendgmr" X-Received: from seanjc798194.pdx.corp.google.com ([2620:15c:f:10:1ea0:b8ff:fe73:50f5]) (user=seanjc job=sendgmr) by 2002:a25:1386:: with SMTP id 128mr9070481ybt.374.1610153285308; Fri, 08 Jan 2021 16:48:05 -0800 (PST) Reply-To: Sean Christopherson Date: Fri, 8 Jan 2021 16:47:13 -0800 In-Reply-To: <20210109004714.1341275-1-seanjc@google.com> Message-Id: <20210109004714.1341275-13-seanjc@google.com> Mime-Version: 1.0 References: <20210109004714.1341275-1-seanjc@google.com> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog Subject: [PATCH 12/13] KVM: SVM: Remove an unnecessary prototype declaration of sev_flush_asids() From: Sean Christopherson To: Paolo Bonzini , Dave Hansen , Andy Lutomirski , Peter Zijlstra Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Lendacky , Borislav Petkov , Brijesh Singh Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Remove the forward declaration of sev_flush_asids(), which is only a few lines above the function itself. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/svm/sev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index 1b9174a49b65..b4a9c12cf8ce 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -36,7 +36,6 @@ static bool sev_es_enabled = IS_ENABLED(CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT module_param_named(sev_es, sev_es_enabled, bool, 0444); static u8 sev_enc_bit; -static int sev_flush_asids(void); static DECLARE_RWSEM(sev_deactivate_lock); static DEFINE_MUTEX(sev_bitmap_lock); unsigned int max_sev_asid;