]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: PPC: Remove set but not used variable 'ra', 'rs', 'rt'
authorzhengbin <zhengbin13@huawei.com>
Tue, 19 Nov 2019 06:27:40 +0000 (14:27 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 17 Jan 2020 04:08:28 +0000 (15:08 +1100)
commit4de0a8355463e068e443b48eb5ae32370155368b
treeb83083ffcf708f28bd81734c92ec418d21197b9e
parentc79f46a282390e0f5b306007bf7b11a46d529538
KVM: PPC: Remove set but not used variable 'ra', 'rs', 'rt'

Fixes gcc '-Wunused-but-set-variable' warning:

arch/powerpc/kvm/emulate_loadstore.c: In function kvmppc_emulate_loadstore:
arch/powerpc/kvm/emulate_loadstore.c:87:6: warning: variable ra set but not used [-Wunused-but-set-variable]
arch/powerpc/kvm/emulate_loadstore.c: In function kvmppc_emulate_loadstore:
arch/powerpc/kvm/emulate_loadstore.c:87:10: warning: variable rs set but not used [-Wunused-but-set-variable]
arch/powerpc/kvm/emulate_loadstore.c: In function kvmppc_emulate_loadstore:
arch/powerpc/kvm/emulate_loadstore.c:87:14: warning: variable rt set but not used [-Wunused-but-set-variable]

They are not used since commit 2b33cb585f94 ("KVM: PPC: Reimplement
LOAD_FP/STORE_FP instruction mmio emulation with analyse_instr() input")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/emulate_loadstore.c