Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1011860ybg; Mon, 27 Jul 2020 05:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwpGSBYnHKaAmLa+2yxEvEzYuVNo09/2BLwX+OtX00H66LH4dRXPBrpeikXt2nPJTQWrZq X-Received: by 2002:a17:906:e0c7:: with SMTP id gl7mr19829828ejb.264.1595854020973; Mon, 27 Jul 2020 05:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595854020; cv=none; d=google.com; s=arc-20160816; b=XF8PmtE9fMH43YXCpFIKO/xFPI2c8y33kDVUPmpvOLeIqv1es+cpgy9Ohjy51lOfAd qwAH/dgyPOqeEFles4wOzGbKznN5xF/ykxNn3lTH3XRNNa0/zLPtbnRoWvOfw11umoP6 KgR4Pa2LIAM5vYzZICcnCcAuva6p8ymK/NUcWDXUGTi84Dr6Ig5kYIcsUXF52Q19Slvk ehzP3gWQqfVCoIsVJ/vT/pP/lXsQpo/5oHiO4mhc2JZEzI/07XlhKwUYTQ73Lc8zUN5N KXLOSmiXt/XRxf6BZei5USQA9YdsKBOwQFMWuAjE8nKQWa3H4eWzG03jvxTWO2JrPDSi h4ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=z8mhpwniynq9Al2KGCYBwvFuQ7zWUXZaUO3a2zhmi2s=; b=CQgWUBnW+CWiKCqsfaOixUUMdyZ9Cjl71X3OYGPdohWmHj7KHwSc6kEjPSwzryAfBl qUEgNWSecKfoG54bApHkV327q1gAz6UM3KdNPVUSDJblwY1XhdeNLUZwLpyd87fIYXFU 8CSgDMpAPced+ktuzzHHA9f/wNT+j6tKLZnNTUXpWTxgqYpc0DMDFivchwZdqK1W2S9A HMPmJ8ZJ+dxOrPARw4f60/TTz6mPN5sY/sqUrCLq8LnbNOwYn7FiSOs3pd/yxFDZhg9B NSUrdBFNkBcuzhUeH7Zto3hn58xsqi+HvZU6nKEZZDeGHDbsODA/4NV11b9QhWF7kum/ ryGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=xFfNNCpl; dkim=neutral (no key) header.i=@vger.kernel.org; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si4238029edc.555.2020.07.27.05.46.38; Mon, 27 Jul 2020 05:47:00 -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=fail header.i=@linutronix.de header.s=2020 header.b=xFfNNCpl; dkim=neutral (no key) header.i=@vger.kernel.org; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728531AbgG0MqZ (ORCPT + 99 others); Mon, 27 Jul 2020 08:46:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbgG0MqW (ORCPT ); Mon, 27 Jul 2020 08:46:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6AA4C0619D5; Mon, 27 Jul 2020 05:46:21 -0700 (PDT) Date: Mon, 27 Jul 2020 12:46:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595853980; 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: in-reply-to:in-reply-to:references:references; bh=z8mhpwniynq9Al2KGCYBwvFuQ7zWUXZaUO3a2zhmi2s=; b=xFfNNCpl3n5qNHpsh2Wz2f6wleEcAmsnXtUQ223FVVLBZ/H6lWotPR/ROkfSXn63Qy3ARV U2vrwQCN1WNoav/k6BFSeiJejlXHox92vdIbcTVV8CENtlzxe8dEwMuAwv31skUB2KDpv6 AgLJz/ZK/Hu2CXNntwxK+aLILymnf1busUBEcjf6aUVGD9EnZjytR3GP529/nyDmxBrEeL ML6YYShw8r4HMfBais1DbadsGPyNv8hwnGtmHq9I4kG7C4j+qQ4HUuxST7v05mwZFqlAv3 kUHh2MD546J0SkhTnSxGLf3P86e1s6GycwaeILpsnPklktW5x7HldPSQsWUyyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595853980; 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: in-reply-to:in-reply-to:references:references; bh=z8mhpwniynq9Al2KGCYBwvFuQ7zWUXZaUO3a2zhmi2s=; b=IPvMxZKyU6yy/VZmGPWtFd2GxuekaAO9hfL/EzMczlJRWWO9a32DLBAei6G2GOBh8W7Lt3 +nwtIEKcBgYdDiCA== From: "tip-bot2 for Joerg Roedel" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm/64: Make sync_global_pgds() static Cc: Joerg Roedel , Ingo Molnar , Mike Rapoport , x86 , LKML In-Reply-To: <20200721095953.6218-4-joro@8bytes.org> References: <20200721095953.6218-4-joro@8bytes.org> MIME-Version: 1.0 Message-ID: <159585397939.4006.11580788411199403044.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/mm branch of tip: Commit-ID: 2b32ab031e82a109e2c5b0d30ce563db0fe286b4 Gitweb: https://git.kernel.org/tip/2b32ab031e82a109e2c5b0d30ce563db0fe286b4 Author: Joerg Roedel AuthorDate: Tue, 21 Jul 2020 11:59:53 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 27 Jul 2020 12:32:29 +02:00 x86/mm/64: Make sync_global_pgds() static The function is only called from within init_64.c and can be static. Also remove it from pgtable_64.h. Signed-off-by: Joerg Roedel Signed-off-by: Ingo Molnar Reviewed-by: Mike Rapoport Link: https://lore.kernel.org/r/20200721095953.6218-4-joro@8bytes.org --- arch/x86/include/asm/pgtable_64.h | 2 -- arch/x86/mm/init_64.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/include/asm/pgtable_64.h b/arch/x86/include/asm/pgtable_64.h index 1b68d24..95ac911 100644 --- a/arch/x86/include/asm/pgtable_64.h +++ b/arch/x86/include/asm/pgtable_64.h @@ -168,8 +168,6 @@ static inline void native_pgd_clear(pgd_t *pgd) native_set_pgd(pgd, native_make_pgd(0)); } -extern void sync_global_pgds(unsigned long start, unsigned long end); - /* * Conversion functions: convert a page and protection to a page entry, * and a page entry and page directory to the page they refer to. diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index e0cd2df..e65b96f 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -209,7 +209,7 @@ static void sync_global_pgds_l4(unsigned long start, unsigned long end) * When memory was added make sure all the processes MM have * suitable PGD entries in the local PGD level page. */ -void sync_global_pgds(unsigned long start, unsigned long end) +static void sync_global_pgds(unsigned long start, unsigned long end) { if (pgtable_l5_enabled()) sync_global_pgds_l5(start, end);