* [PATCH] KVM: arm/arm64: Remove unused gpa_end variable
@ 2019-02-19 9:22 Shaokun Zhang
2019-02-20 11:03 ` Marc Zyngier
0 siblings, 1 reply; 2+ messages in thread
From: Shaokun Zhang @ 2019-02-19 9:22 UTC (permalink / raw)
To: linux-arm-kernel, kvmarm; +Cc: Shaokun Zhang, Marc Zyngier, Christoffer Dall
The 'gpa_end' local variable is never used and let's remove it.
Cc: Christoffer Dall <christoffer.dall@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
virt/kvm/arm/mmu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c
index 30251e288629..eac6ff15bd3a 100644
--- a/virt/kvm/arm/mmu.c
+++ b/virt/kvm/arm/mmu.c
@@ -1598,14 +1598,13 @@ static void kvm_send_hwpoison_signal(unsigned long address,
static bool fault_supports_stage2_pmd_mappings(struct kvm_memory_slot *memslot,
unsigned long hva)
{
- gpa_t gpa_start, gpa_end;
+ gpa_t gpa_start;
hva_t uaddr_start, uaddr_end;
size_t size;
size = memslot->npages * PAGE_SIZE;
gpa_start = memslot->base_gfn << PAGE_SHIFT;
- gpa_end = gpa_start + size;
uaddr_start = memslot->userspace_addr;
uaddr_end = uaddr_start + size;
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: arm/arm64: Remove unused gpa_end variable
2019-02-19 9:22 [PATCH] KVM: arm/arm64: Remove unused gpa_end variable Shaokun Zhang
@ 2019-02-20 11:03 ` Marc Zyngier
0 siblings, 0 replies; 2+ messages in thread
From: Marc Zyngier @ 2019-02-20 11:03 UTC (permalink / raw)
To: Shaokun Zhang; +Cc: kvmarm, linux-arm-kernel, Christoffer Dall
On Tue, 19 Feb 2019 17:22:21 +0800
Shaokun Zhang <zhangshaokun@hisilicon.com> wrote:
> The 'gpa_end' local variable is never used and let's remove it.
>
> Cc: Christoffer Dall <christoffer.dall@arm.com>
> Cc: Marc Zyngier <marc.zyngier@arm.com>
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Applied to -next.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-20 11:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19 9:22 [PATCH] KVM: arm/arm64: Remove unused gpa_end variable Shaokun Zhang
2019-02-20 11:03 ` Marc Zyngier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).