Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp588776ybh; Tue, 21 Jul 2020 03:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw76uHNQKwwM0dAB5O70+B8TS+E0DdhA45A/dqP9DrFgC9udsoYWrlSBdSWB8vxspjSSCb X-Received: by 2002:a05:6402:2064:: with SMTP id bd4mr24707057edb.180.1595325792039; Tue, 21 Jul 2020 03:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595325792; cv=none; d=google.com; s=arc-20160816; b=akqth+e2VmvrCa/AtO6V5Rf68BELLpxdCSALs26LXJoxwiQ5T6SFB7iYEo/O2I0JzH HaH8O4L24KMGe+CTIiY89D8S3E2BeuS62KdsbGRxS7JKZIB6sGaCpce0QXENGJE/93ST zXNxCWdvhcdrVYmX92Zo2SQbfrfdD6tKEmFTwGW50OWBxUyFOp6gpa4hTo9KFNl6sUg6 k5Yc9dufyMhrCPd/hS6GO7ewak41ueeOjyUfAnlcBUj/qLsYz2NfDNApe4EQvD2uzYhK f4RaI7zgW2XGdaiIfQ5/4svT6EoPWc7m0ZULKxXZTPxUYvOSwQK3fnF8dN9CqQMURsi3 3a/w== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LEQjimi4ChcN3VthnR81nicvt6P4OESxCZ8nD1QrVpY=; b=yAFVrJhxKk5WC4tUBv5yrO31gLYhyP3kmofLj93igstbQRG/NIRwet/fkxot+TBceU xXk4d3CJJgnQYztCmT0QwBzk+kWjHt/LiZbJV1JEnITjmcr5Xtu13ZHOPyJcRfJYHkkp I7c/LaDVWk1lqI9QBmJZDF2m1dUgwLG6Xq35O7wCKORbIedQhvvHUI7iowdmpQ+EUToz PNtN2aQqXJuG0PpVgXwxMD2L/t6l5MlKZetE0R3W2vdWhoIvv4mKtwyaYuT5mtF2KcNr dB51WamS18rElH+Ct6d6SeRvpagyUsnvmHMRoV57T8M1zERSM5CLy0cHInxLSv8dlSYZ EhQQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si11841551ede.597.2020.07.21.03.02.49; Tue, 21 Jul 2020 03:03:12 -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; 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=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729150AbgGUKAR (ORCPT + 99 others); Tue, 21 Jul 2020 06:00:17 -0400 Received: from 8bytes.org ([81.169.241.247]:58364 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729030AbgGUKAJ (ORCPT ); Tue, 21 Jul 2020 06:00:09 -0400 Received: from cap.home.8bytes.org (p5b006776.dip0.t-ipconnect.de [91.0.103.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by theia.8bytes.org (Postfix) with ESMTPSA id 678D044A; Tue, 21 Jul 2020 12:00:07 +0200 (CEST) From: Joerg Roedel To: x86@kernel.org Cc: hpa@zytor.com, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Andrew Morton , Mike Rapoport , Joerg Roedel , joro@8bytes.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] x86/mm/64: Make sync_global_pgds() static Date: Tue, 21 Jul 2020 11:59:53 +0200 Message-Id: <20200721095953.6218-4-joro@8bytes.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200721095953.6218-1-joro@8bytes.org> References: <20200721095953.6218-1-joro@8bytes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel 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 --- 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 1b68d24dc6a0..95ac911b1a30 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 e0cd2dfd333d..e65b96f381a7 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); -- 2.27.0