From patchwork Mon Jan 9 06:24:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jintack Lim X-Patchwork-Id: 9503949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B70860757 for ; Mon, 9 Jan 2017 06:33:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BFD02808F for ; Mon, 9 Jan 2017 06:33:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40B732811C; Mon, 9 Jan 2017 06:33:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0EA32808F for ; Mon, 9 Jan 2017 06:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033903AbdAIGdP (ORCPT ); Mon, 9 Jan 2017 01:33:15 -0500 Received: from outprodmail02.cc.columbia.edu ([128.59.72.51]:52215 "EHLO outprodmail02.cc.columbia.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S939758AbdAIG02 (ORCPT ); Mon, 9 Jan 2017 01:26:28 -0500 Received: from hazelnut (hazelnut.cc.columbia.edu [128.59.213.250]) by outprodmail02.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096PXoR005357 for ; Mon, 9 Jan 2017 01:26:15 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id 5327E83 for ; Mon, 9 Jan 2017 01:26:15 -0500 (EST) Received: from sendprodmail02.cc.columbia.edu (sendprodmail02.cc.columbia.edu [128.59.72.14]) by hazelnut (Postfix) with ESMTP id 20E7C87 for ; Mon, 9 Jan 2017 01:26:15 -0500 (EST) Received: from mail-qt0-f200.google.com (mail-qt0-f200.google.com [209.85.216.200]) by sendprodmail02.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096QEsL042593 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 9 Jan 2017 01:26:15 -0500 Received: by mail-qt0-f200.google.com with SMTP id q3so52481943qtf.4 for ; Sun, 08 Jan 2017 22:26:15 -0800 (PST) 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=OklDbY+RpK2QYRTBN8e8jC/qF/F31aJSKP+7Jq6yn+Q=; b=sEjo3+2heG/WflirKLf0vMTS96c7S5xvPFdNv5g+1npUuJSbvPVs1FCnP2y22c1u9X VEuQI3OmMUk+lqXc5xFrybE2f2znJE+8vY+3jdWOhzTkSwHu7TPsfCRqs7lM62wV/k22 T2tPsdFk6NjbbGEFa8wTYUoXOl248xNEK5Slq3vcr0SH2p84zanasmoOn5HPnGIv5srs yZ4ndI1IjdDZnwZfM2e6eEfhPE0FjLWUZmyh0E4yTVK3vJJRvjhDZJVJcVtF8yCGbwEA skGvOwxt6c1amcCg4JB/hZ1tKzQC1xs4CEyJVS5Y7ZNHH5cIjvCFcS+s4z5g1ptGVbDT /wVg== X-Gm-Message-State: AIkVDXIItFksPXUDTGYLd9g47IDW35XxkxbPQ4tu0JVsXMWESOCF5HgWVuQLuY+yyM+vUfkyVzkruVyNrsSXhNu8rv/5MOwZHEPAOYoRinEtdbRsHDsmaEws+gHA1/fAuwG60NkMqO5MVCk= X-Received: by 10.55.45.129 with SMTP id t123mr74655402qkh.311.1483943174720; Sun, 08 Jan 2017 22:26:14 -0800 (PST) X-Received: by 10.55.45.129 with SMTP id t123mr74655374qkh.311.1483943174564; Sun, 08 Jan 2017 22:26:14 -0800 (PST) Received: from jintack.cs.columbia.edu ([2001:18d8:ffff:16:21a:4aff:feaa:f900]) by smtp.gmail.com with ESMTPSA id h3sm8623257qtc.6.2017.01.08.22.26.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Jan 2017 22:26:13 -0800 (PST) From: Jintack Lim To: christoffer.dall@linaro.org, marc.zyngier@arm.com, pbonzini@redhat.com, rkrcmar@redhat.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, vladimir.murzin@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, james.morse@arm.com, lorenzo.pieralisi@arm.com, kevin.brodsky@arm.com, wcohen@redhat.com, shankerd@codeaurora.org, geoff@infradead.org, andre.przywara@arm.com, eric.auger@redhat.com, anna-maria@linutronix.de, shihwei@cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jintack@cs.columbia.edu Subject: [RFC 33/55] KVM: arm/arm64: Remove unused params in mmu functions Date: Mon, 9 Jan 2017 01:24:29 -0500 Message-Id: <1483943091-1364-34-git-send-email-jintack@cs.columbia.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483943091-1364-1-git-send-email-jintack@cs.columbia.edu> References: <1483943091-1364-1-git-send-email-jintack@cs.columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.78 on 128.59.72.14 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Christoffer Dall stage2_flush_xxx functions take a pointer to the kvm struct as the first parameter but they are never used. Clean this up before modifying mmu code for nested virtualization support. Signed-off-by: Christoffer Dall Signed-off-by: Jintack Lim --- arch/arm/kvm/mmu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index a5265ed..57cb671 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -300,7 +300,7 @@ static void unmap_stage2_range(struct kvm *kvm, phys_addr_t start, u64 size) } while (pgd++, addr = next, addr != end); } -static void stage2_flush_ptes(struct kvm *kvm, pmd_t *pmd, +static void stage2_flush_ptes(pmd_t *pmd, phys_addr_t addr, phys_addr_t end) { pte_t *pte; @@ -312,7 +312,7 @@ static void stage2_flush_ptes(struct kvm *kvm, pmd_t *pmd, } while (pte++, addr += PAGE_SIZE, addr != end); } -static void stage2_flush_pmds(struct kvm *kvm, pud_t *pud, +static void stage2_flush_pmds(pud_t *pud, phys_addr_t addr, phys_addr_t end) { pmd_t *pmd; @@ -325,12 +325,12 @@ static void stage2_flush_pmds(struct kvm *kvm, pud_t *pud, if (pmd_thp_or_huge(*pmd)) kvm_flush_dcache_pmd(*pmd); else - stage2_flush_ptes(kvm, pmd, addr, next); + stage2_flush_ptes(pmd, addr, next); } } while (pmd++, addr = next, addr != end); } -static void stage2_flush_puds(struct kvm *kvm, pgd_t *pgd, +static void stage2_flush_puds(pgd_t *pgd, phys_addr_t addr, phys_addr_t end) { pud_t *pud; @@ -343,7 +343,7 @@ static void stage2_flush_puds(struct kvm *kvm, pgd_t *pgd, if (stage2_pud_huge(*pud)) kvm_flush_dcache_pud(*pud); else - stage2_flush_pmds(kvm, pud, addr, next); + stage2_flush_pmds(pud, addr, next); } } while (pud++, addr = next, addr != end); } @@ -359,7 +359,7 @@ static void stage2_flush_memslot(struct kvm *kvm, pgd = kvm->arch.pgd + stage2_pgd_index(addr); do { next = stage2_pgd_addr_end(addr, end); - stage2_flush_puds(kvm, pgd, addr, next); + stage2_flush_puds(pgd, addr, next); } while (pgd++, addr = next, addr != end); }