From: yangerkun <yangerkun@huawei.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH] KVM: PPC: Book3S PR: remove unused define in kvmppc_mmu_book3s_64_xlate
Date: Tue, 15 Jun 2021 13:50:25 +0000 [thread overview]
Message-ID: <2a659d67-48f2-309f-bbb3-b0fe2d64b94a@huawei.com> (raw)
In-Reply-To: <20210604081303.3701171-1-yangerkun@huawei.com>
Ping...
在 2021/6/4 16:13, yangerkun 写道:
> arch/powerpc/kvm/book3s_64_mmu.c:199:6: warning: variable ‘v’ set but
> not used [-Wunused-but-set-variable]
> 199 | u64 v, r;
> | ^
>
> Fix it by remove the define.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: yangerkun <yangerkun@huawei.com>
> ---
> arch/powerpc/kvm/book3s_64_mmu.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/kvm/book3s_64_mmu.c b/arch/powerpc/kvm/book3s_64_mmu.c
> index 26b8b27a3755..feee40cb2ba1 100644
> --- a/arch/powerpc/kvm/book3s_64_mmu.c
> +++ b/arch/powerpc/kvm/book3s_64_mmu.c
> @@ -196,7 +196,7 @@ static int kvmppc_mmu_book3s_64_xlate(struct kvm_vcpu *vcpu, gva_t eaddr,
> hva_t ptegp;
> u64 pteg[16];
> u64 avpn = 0;
> - u64 v, r;
> + u64 r;
> u64 v_val, v_mask;
> u64 eaddr_mask;
> int i;
> @@ -285,7 +285,6 @@ static int kvmppc_mmu_book3s_64_xlate(struct kvm_vcpu *vcpu, gva_t eaddr,
> goto do_second;
> }
>
> - v = be64_to_cpu(pteg[i]);
> r = be64_to_cpu(pteg[i+1]);
> pp = (r & HPTE_R_PP) | key;
> if (r & HPTE_R_PP0)
>
prev parent reply other threads:[~2021-06-15 13:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-04 8:13 [PATCH] KVM: PPC: Book3S PR: remove unused define in kvmppc_mmu_book3s_64_xlate yangerkun
2021-06-04 11:58 ` Michael Ellerman
2021-06-15 13:50 ` yangerkun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2a659d67-48f2-309f-bbb3-b0fe2d64b94a@huawei.com \
--to=yangerkun@huawei.com \
--cc=kvm-ppc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox