* [PATCH -next] KVM: arm/arm64: Remove unused timer variable
@ 2019-02-22 6:34 Shaokun Zhang
2019-02-22 8:49 ` Julien Thierry
0 siblings, 1 reply; 3+ messages in thread
From: Shaokun Zhang @ 2019-02-22 6:34 UTC (permalink / raw)
To: linux-arm-kernel, kvmarm
Cc: Suzuki K Pouloze, Marc Zyngier, Julien Thierry, Christoffer Dall,
Shaokun Zhang, James Morse
The 'timer' local variable became unused after commit bee038a67487
("KVM: arm/arm64: Rework the timer code to use a timer_map").
Remove it to avoid [-Wunused-but-set-variable] warning.
Cc: Christoffer Dall <christoffer.dall@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Julien Thierry <julien.thierry@arm.com>
Cc: Suzuki K Pouloze <suzuki.poulose@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
virt/kvm/arm/arch_timer.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c
index af8f2f1d01cc..3417f2dbc366 100644
--- a/virt/kvm/arm/arch_timer.c
+++ b/virt/kvm/arm/arch_timer.c
@@ -236,14 +236,12 @@ static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt)
static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx)
{
- struct arch_timer_cpu *timer;
enum kvm_arch_timers index;
u64 cval, now;
if (!timer_ctx)
return false;
- timer = vcpu_timer(timer_ctx->vcpu);
index = arch_timer_ctx_index(timer_ctx);
if (timer_ctx->loaded) {
--
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] 3+ messages in thread
* Re: [PATCH -next] KVM: arm/arm64: Remove unused timer variable
2019-02-22 6:34 [PATCH -next] KVM: arm/arm64: Remove unused timer variable Shaokun Zhang
@ 2019-02-22 8:49 ` Julien Thierry
2019-02-22 9:42 ` Marc Zyngier
0 siblings, 1 reply; 3+ messages in thread
From: Julien Thierry @ 2019-02-22 8:49 UTC (permalink / raw)
To: Shaokun Zhang, linux-arm-kernel, kvmarm
Cc: Marc Zyngier, James Morse, Christoffer Dall, Suzuki K Pouloze
Hi Shaokun,
On 22/02/2019 06:34, Shaokun Zhang wrote:
> The 'timer' local variable became unused after commit bee038a67487
> ("KVM: arm/arm64: Rework the timer code to use a timer_map").
> Remove it to avoid [-Wunused-but-set-variable] warning.
>
> Cc: Christoffer Dall <christoffer.dall@arm.com>
> Cc: Marc Zyngier <marc.zyngier@arm.com>
> Cc: James Morse <james.morse@arm.com>
> Cc: Julien Thierry <julien.thierry@arm.com>
> Cc: Suzuki K Pouloze <suzuki.poulose@arm.com>
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> ---
> virt/kvm/arm/arch_timer.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c
> index af8f2f1d01cc..3417f2dbc366 100644
> --- a/virt/kvm/arm/arch_timer.c
> +++ b/virt/kvm/arm/arch_timer.c
> @@ -236,14 +236,12 @@ static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt)
>
> static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx)
> {
> - struct arch_timer_cpu *timer;
> enum kvm_arch_timers index;
> u64 cval, now;
>
> if (!timer_ctx)
> return false;
>
> - timer = vcpu_timer(timer_ctx->vcpu);
> index = arch_timer_ctx_index(timer_ctx);
>
> if (timer_ctx->loaded) {
This seems to be a consequence of moving the loaded state from
arch_timer_cpu to arch_timer_context. Thanks for fixing it.
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Cheers,
--
Julien Thierry
_______________________________________________
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] 3+ messages in thread
* Re: [PATCH -next] KVM: arm/arm64: Remove unused timer variable
2019-02-22 8:49 ` Julien Thierry
@ 2019-02-22 9:42 ` Marc Zyngier
0 siblings, 0 replies; 3+ messages in thread
From: Marc Zyngier @ 2019-02-22 9:42 UTC (permalink / raw)
To: Julien Thierry
Cc: Suzuki K Pouloze, Christoffer Dall, Shaokun Zhang, James Morse,
kvmarm, linux-arm-kernel
On Fri, 22 Feb 2019 08:49:42 +0000
Julien Thierry <julien.thierry@arm.com> wrote:
> Hi Shaokun,
>
> On 22/02/2019 06:34, Shaokun Zhang wrote:
> > The 'timer' local variable became unused after commit bee038a67487
> > ("KVM: arm/arm64: Rework the timer code to use a timer_map").
> > Remove it to avoid [-Wunused-but-set-variable] warning.
> >
> > Cc: Christoffer Dall <christoffer.dall@arm.com>
> > Cc: Marc Zyngier <marc.zyngier@arm.com>
> > Cc: James Morse <james.morse@arm.com>
> > Cc: Julien Thierry <julien.thierry@arm.com>
> > Cc: Suzuki K Pouloze <suzuki.poulose@arm.com>
> > Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> > ---
> > virt/kvm/arm/arch_timer.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c
> > index af8f2f1d01cc..3417f2dbc366 100644
> > --- a/virt/kvm/arm/arch_timer.c
> > +++ b/virt/kvm/arm/arch_timer.c
> > @@ -236,14 +236,12 @@ static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt)
> >
> > static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx)
> > {
> > - struct arch_timer_cpu *timer;
> > enum kvm_arch_timers index;
> > u64 cval, now;
> >
> > if (!timer_ctx)
> > return false;
> >
> > - timer = vcpu_timer(timer_ctx->vcpu);
> > index = arch_timer_ctx_index(timer_ctx);
> >
> > if (timer_ctx->loaded) {
>
> This seems to be a consequence of moving the loaded state from
> arch_timer_cpu to arch_timer_context. Thanks for fixing it.
>
> Reviewed-by: Julien Thierry <julien.thierry@arm.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] 3+ messages in thread
end of thread, other threads:[~2019-02-22 9:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-22 6:34 [PATCH -next] KVM: arm/arm64: Remove unused timer variable Shaokun Zhang
2019-02-22 8:49 ` Julien Thierry
2019-02-22 9:42 ` 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).