From patchwork Tue Oct 3 13:45:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 147897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2096351vqb; Tue, 3 Oct 2023 06:46:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+f+2PEKMeInIcgJ/tmVB+T9Fn0mk+3UsYmSpJQnJVoL48aXRcQPF/f6qnfCYPTND7zVXV X-Received: by 2002:a17:903:2695:b0:1c6:1206:c5b0 with SMTP id jf21-20020a170903269500b001c61206c5b0mr9763555plb.67.1696340778871; Tue, 03 Oct 2023 06:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696340778; cv=none; d=google.com; s=arc-20160816; b=C2uee8Y8x+Uy9JQljARL0BrMB5E+BQHCNqbx+uFAefNl5Yi+dhjIJTHxi3znNCGMBE CqvPNPxJ3uY7mteqbHkspekCAi/Uv2anToMxZiZsmez0k5iURZS2V918rSr6YcNQds6Q tbKKgNhMcCUSfp0UsBT0lGf0uugC5Q5ocDoM+SDD48lMCWYQ5nk+0wTZu5kw97zonAoa ZuRTMQply6zc9hCuSWDLDfigsPqUDB/ZfvcJPsGOP5rUZg0ngD+hmwuOoyWsyXXEmcAP bi5ydTcWVI7m67jsoAnoTfP4ioRoVMvzUZxjgol1XLks+kXCVTB3o9kR0GVDRW6F8xXQ qFdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=VZ16lJZp2GcZbyxe8LA5HOa8XPXLW36KpKHUXqtXlSY=; fh=YJs9q6bA2RfbFeQu9gxqERvH4Bkd6NNQ/BMCPQjc4Qw=; b=Nuom3cW09JGDImJKraOr4ooeNxEhQ0fMSrWZSP42/0RguxwqO4u2gDmi6r8CQFV9Dz gedXpVvqlRA+8RnhplOcuMlu5jl0aKPvLkVhLZdN30E90xMtRPXVtOwHOy6VzJcK06AP nb7b8wWjyDwWWbrp/mJAJqbhzCNZHqeMKd22tHlYLH398IdQWUs2smmVuPr5vJMEnRzU BqWN8Zi6C6efmAA42YU6Yp8HE2mV5iOUc4+KVVmBQ++DvGJD21n7BqFoho0vIBaqI6l3 PQjFwOVYVO+tiWVT5vs8PVuwHaaJRFh+auFafbeGyvyJXOArEN4ZNUopMGGuleZN1Toa BpqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3yVNPx61; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nERqZSbR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c8-20020a170902d48800b001b9e82a6beesi1514401plg.548.2023.10.03.06.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 06:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3yVNPx61; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nERqZSbR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9E7028088548; Tue, 3 Oct 2023 06:45:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236488AbjJCNpe (ORCPT + 17 others); Tue, 3 Oct 2023 09:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232284AbjJCNpc (ORCPT ); Tue, 3 Oct 2023 09:45:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D74EAB; Tue, 3 Oct 2023 06:45:29 -0700 (PDT) Date: Tue, 03 Oct 2023 13:45:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696340726; h=from:from:sender:sender:reply-to: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:content-transfer-encoding; bh=VZ16lJZp2GcZbyxe8LA5HOa8XPXLW36KpKHUXqtXlSY=; b=3yVNPx61a2Y9WVV2+CP+p1flXJHfsO1gwC9k4DX047l4KnCm8LC7Qqjv5risT9GXm4c/Dg H8KTU7Rm823/cDBL/0yVMUcSa2oMsLVcmStSyxAmMmWG4ngJ/UMtioNlsmYSM0v+yYx+Tf LlNL7SeV5xrUyb7O96/1Qfj0GQe9ivDCTHYuFmA3TJ9Nd1kYPz9w7llYin27hU08DoCejR J2oWbhfh4o9qZw2X0s5J8B1ISxcorVz+F/kCDxjdqFQewWVV9FJfEcj47lCMbD5OYI4Eyi tqecBpikgOkrDQc69Fj4/tc27vepUGVg3eBnfXiGph6jbPF2RZjMGaUsCNlQuw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696340726; h=from:from:sender:sender:reply-to: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:content-transfer-encoding; bh=VZ16lJZp2GcZbyxe8LA5HOa8XPXLW36KpKHUXqtXlSY=; b=nERqZSbR+/ohXIlGKvhhN21wZOK5HUEwFI3M2l0993NLoxmPVlwhuA4sSnYEkwns2+5T+h kBzHBP8UHRj+x2Cg== From: "tip-bot2 for GUO Zihua" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/sev: Make boot_ghcb_page[] static Cc: GUO Zihua , Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org MIME-Version: 1.0 Message-ID: <169634072599.3135.3729990591785308336.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 03 Oct 2023 06:45:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778742228629762926 X-GMAIL-MSGID: 1778742228629762926 The following commit has been merged into the x86/mm branch of tip: Commit-ID: bfb32e2008e278507bd93bff91662422d9cda9da Gitweb: https://git.kernel.org/tip/bfb32e2008e278507bd93bff91662422d9cda9da Author: GUO Zihua AuthorDate: Wed, 02 Aug 2023 10:14:36 +08:00 Committer: Ingo Molnar CommitterDate: Tue, 03 Oct 2023 15:31:27 +02:00 x86/sev: Make boot_ghcb_page[] static boot_ghcb_page is not used by any other file, so make it static. This also resolves sparse warning: arch/x86/boot/compressed/sev.c:28:13: warning: symbol 'boot_ghcb_page' was not declared. Should it be static? Signed-off-by: GUO Zihua Signed-off-by: Ingo Molnar Cc: linux-kernel@vger.kernel.org --- arch/x86/boot/compressed/sev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/sev.c b/arch/x86/boot/compressed/sev.c index dc8c876..ba4868f 100644 --- a/arch/x86/boot/compressed/sev.c +++ b/arch/x86/boot/compressed/sev.c @@ -25,7 +25,7 @@ #include "error.h" #include "../msr.h" -struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); +static struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); struct ghcb *boot_ghcb; /*