From patchwork Tue Oct 27 10:58:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Dunlap X-Patchwork-Id: 11859929 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A47CD61C for ; Tue, 27 Oct 2020 11:01:07 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64301218AC for ; Tue, 27 Oct 2020 11:01:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="c8AeIn40" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64301218AC Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.12783.33113 (Exim 4.92) (envelope-from ) id 1kXMiB-0003WB-Q4; Tue, 27 Oct 2020 11:00:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 12783.33113; Tue, 27 Oct 2020 11:00:19 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kXMiB-0003W4-N2; Tue, 27 Oct 2020 11:00:19 +0000 Received: by outflank-mailman (input) for mailman id 12783; Tue, 27 Oct 2020 11:00:18 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kXMiA-0003Vz-2A for xen-devel@lists.xenproject.org; Tue, 27 Oct 2020 11:00:18 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3cf6879f-c274-406e-b102-6c89e1415c50; Tue, 27 Oct 2020 11:00:16 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kXMiA-0003Vz-2A for xen-devel@lists.xenproject.org; Tue, 27 Oct 2020 11:00:18 +0000 X-Inumbo-ID: 3cf6879f-c274-406e-b102-6c89e1415c50 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3cf6879f-c274-406e-b102-6c89e1415c50; Tue, 27 Oct 2020 11:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1603796416; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bnzilUGUttNZba4BEWffCGoa6x7FSjyqhCYjTIOednw=; b=c8AeIn40fP4wh8isxdSahruQiAbggDSHzk47ITRnCIFdDQtY74KU6kFN juXg7u7Dw5gxFU04am/2Ackmm/RyGLINO4Oe2r04e3ujbA8w37jzu05F7 LdjOeG01bSxKscwaui/PPzXxrQ9U72czVZc6gANY96cw8VU3lFYwmn7lo s=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: fgYDooBJu1m9oJNlNgvljkvzOf4GAW6lL6MsihnZ7zJ0L8k4VKcEaNvwVoJI8SFAIPlyKw48h2 exzprB6oSJrRUQSCqpzsNDLg1IB5HmCzO4lFep0xGVIWCCta+p4y2aUFQa7kzqTW/qJwHLF7hN lTG6S9iGLDGAzgRtu9jDOEDfNJZwKL1N1uKLWMBpsN0ALzHihxfPSoC80rYHBPAjW1v/sjsJK3 WniYXv8nrszKiIkIrxA9i2MMOZsVsLk9uwUnrHcVptqtJgbOXamDStEc8HIQgZMralpuRO6uOW a9g= X-SBRS: None X-MesageID: 29824937 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.77,423,1596513600"; d="scan'208";a="29824937" From: George Dunlap To: CC: George Dunlap , Andrew Cooper , Jan Beulich , Roger Pau Monne , Stefano Stabellini , "Julien Grall" Subject: [PATCH] {x86,arm}/mm.c: Make populate_pt_range __init Date: Tue, 27 Oct 2020 10:58:39 +0000 Message-ID: <20201027105839.129217-1-george.dunlap@citrix.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 It's only called from another __init function. Signed-off-by: George Dunlap Acked-by: Andrew Cooper Acked-by: Julien Grall --- CC: Andrew Cooper CC: Jan Beulich CC: Roger Pau Monne CC: Stefano Stabellini CC: Julien Grall --- xen/arch/arm/mm.c | 2 +- xen/arch/x86/mm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 9c4b26bf07..dbd9f3fe4c 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -1298,7 +1298,7 @@ int map_pages_to_xen(unsigned long virt, return xen_pt_update(virt, mfn, nr_mfns, flags); } -int populate_pt_range(unsigned long virt, unsigned long nr_mfns) +int __init populate_pt_range(unsigned long virt, unsigned long nr_mfns) { return xen_pt_update(virt, INVALID_MFN, nr_mfns, _PAGE_POPULATE); } diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index b2f35b3e7d..1f7ddf318b 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -5529,7 +5529,7 @@ int map_pages_to_xen( return rc; } -int populate_pt_range(unsigned long virt, unsigned long nr_mfns) +int __init populate_pt_range(unsigned long virt, unsigned long nr_mfns) { return map_pages_to_xen(virt, INVALID_MFN, nr_mfns, MAP_SMALL_PAGES); }