From patchwork Fri Feb 22 08:23:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 159002 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1454602jaa; Fri, 22 Feb 2019 00:24:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IY8p8gGdtPYE6/u42JQMPTOFmCVLbI/5rMz/OZKkxKXV1gKMQZd4pwQFLyiQOMLGWvxOYH+ X-Received: by 2002:a17:902:2:: with SMTP id 2mr3077520pla.228.1550823843035; Fri, 22 Feb 2019 00:24:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550823843; cv=none; d=google.com; s=arc-20160816; b=OHvYuh+ASuzZtNAaP/pZXIm0URORQl1ifztZbH8EhdrsAzKYoohtopv31jfW6i99Oh zLgLWDDkKC1hx9hF+bCsD2FBju+SD1B/qIBhKEQz3JXsJxf1FO9SUr1S92+MIRHyQk9p 0oWWtrNt36oUCgnN9dn+/V1iRyuEqjoNpJ0OXuxaxuDjmoM3IeZQaz3oBl+bovdYzRPW iiFcAY2cGY7aSlHwyCaR++vxhXvW75mNFSWm6dnpRRh0OBIDLUYdNBnqVI9Z5kAFkVnU 4UrrWroDPrSzSIaFNLV86vkv77Rj8Rq3YZ5vWkvhRS+0ewFcaN7Lft6S3qw5TbrtiGRH MtjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yToDsQHz3ALMgK9EtUQgb46vvC2ZQAohlXLeU3oKRKI=; b=gDeeILHFrjjEh9/1hmwXgqP0j5UzIp/o/0J6pHZByUx7txkQReVWv07FSmzybnyhLA kPlNMzjOmvXV6AbM4SYldKNWVvgi4S71MqXRElJxxBG7iBqMjUNDrz8oyd8GUGYlE9+C 2c8YFoX1UrnEAHcS4YINOf25lhbVBVwbcJaMgHnqOMwLgG1ntQc4R0vo4I9HJIO1sLuO eyadizs3kHR0WnJz3eoyE+O7mLMkn03COzmC7JG/HuV/QXYaLraCNvuq0hRa8naQwbp8 0fbVqaUBetQbLaaM5IRBS3XlZZTvcN7LMWAw3CJo/YzImWMn0TdvnspUwce7So3vSo8P +pnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iNDxPbyy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si801577pgh.438.2019.02.22.00.24.02; Fri, 22 Feb 2019 00:24:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iNDxPbyy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbfBVIYB (ORCPT + 32 others); Fri, 22 Feb 2019 03:24:01 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45268 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfBVIYA (ORCPT ); Fri, 22 Feb 2019 03:24:00 -0500 Received: by mail-pl1-f194.google.com with SMTP id r14so749456pls.12 for ; Fri, 22 Feb 2019 00:24:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yToDsQHz3ALMgK9EtUQgb46vvC2ZQAohlXLeU3oKRKI=; b=iNDxPbyyWhQMppHJsSCDsV+gjSyBJy0WimqXj0Zezyafuk6tomK/Xpt2ifNex/GF18 zN2zDgecC0MfI5c8GruuMobJ7jBysUACkeUYWFdaCIusTrt0ucF8l1vVINzPUJpHFBsr 2FogixqkYPdDK3t9W8RZj9rmOdCqTjYuyPUekjVq+gnNopoRq8U1KEykJxMMgLU5gMj7 Tm5zVXAykk1ldds6XoIzsBxawpkkhfJjsvyqoFbnpi9ntVN/9GXEHQQ1/eogTqeC8Xfu L7E2Abc5Xe0RowZjqh7fpUuPuOWqaqXkbwUJIZ1rRmGHkg8r8aM+pFjhPsx4+F4Roo3k 1N6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yToDsQHz3ALMgK9EtUQgb46vvC2ZQAohlXLeU3oKRKI=; b=YFtpwykgjCJEOMFNtN4JNjsk5B97wYf2aLIKF6NVAiTNIDWe5AqaCPMupt/sYNxo2c q8pe5SHcB3PsHnWrlVPmJcwlcuUCN4dReFeZiJ2wBcnF/DbDcAcHiAHZ26av+t+qIQjl tRMdr7KtsWDldwQMa1kZeuW6Ze4sTuysH24+keDBv4ZJh/41+O17LdaCraN+IGOg1OXm IUQz0cINiFBaeggUIJ8i4WOl0kVCpO3BDrPHTZVqrV4UC/OcPEETAFXIPanE1vE+Ms1T n18E+3T2IFTEPmpF7B8nruK1iI0NeMrA1rP2vaTNZD8kKTJ72fcbTFKF+Fjg2TYR/708 5Crw== X-Gm-Message-State: AHQUAuaF6tUf6l++vqG7WQHsaLAOteDNr8fKFQG06pq19CzbTppRWAhR f/QSdRBRRDbYch/XRLJeokXDyQ== X-Received: by 2002:a17:902:9689:: with SMTP id n9mr3026924plp.8.1550823840196; Fri, 22 Feb 2019 00:24:00 -0800 (PST) Received: from localhost.localdomain (li1195-158.members.linode.com. [45.79.96.158]) by smtp.gmail.com with ESMTPSA id y22sm133821pfn.136.2019.02.22.00.23.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 00:23:59 -0800 (PST) From: Leo Yan To: Christoffer Dall , Marc Zyngier , Catalin Marinas , Will Deacon , Mark Rutland , James Morse , Andre Przywara , Jun Yao , Paolo Bonzini , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v1 4/4] KVM: arm/arm64: Fix comment on create_hyp_mappings() Date: Fri, 22 Feb 2019 16:23:26 +0800 Message-Id: <20190222082327.3312-5-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190222082327.3312-1-leo.yan@linaro.org> References: <20190222082327.3312-1-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit f7bec68d2fae ("arm/arm64: KVM: Prune unused #defines"), the macro HYP_PAGE_OFFSET has been removed, but it's kept in the comment for the function create_hyp_mappings(). This patch uses PAGE_OFFSET to replace HYP_PAGE_OFFSET and this is consistent with what is doing in the function. Signed-off-by: Leo Yan --- virt/kvm/arm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c index 5eca48bdb1a6..9634f47c2c8b 100644 --- a/virt/kvm/arm/mmu.c +++ b/virt/kvm/arm/mmu.c @@ -734,7 +734,7 @@ static phys_addr_t kvm_kaddr_to_phys(void *kaddr) * @prot: The protection to be applied to this range * * The same virtual address as the kernel virtual address is also used - * in Hyp-mode mapping (modulo HYP_PAGE_OFFSET) to the same underlying + * in Hyp-mode mapping (modulo PAGE_OFFSET) to the same underlying * physical pages. */ int create_hyp_mappings(void *from, void *to, pgprot_t prot)