kernel_samsung_a53x/arch/mips/kvm
Huacai Chen a950ee6028 MIPS: KVM: Fix a build warning about variable set but not used
[ Upstream commit 83767a67e7b6a0291cde5681ec7e3708f3f8f877 ]

After commit 411740f5422a ("KVM: MIPS/MMU: Implement KVM_CAP_SYNC_MMU")
old_pte is no longer used in kvm_mips_map_page(). So remove it to fix a
build warning about variable set but not used:

   arch/mips/kvm/mmu.c: In function 'kvm_mips_map_page':
>> arch/mips/kvm/mmu.c:701:29: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
     701 |         pte_t *ptep, entry, old_pte;
         |                             ^~~~~~~

Cc: stable@vger.kernel.org
Fixes: 411740f5422a960 ("KVM: MIPS/MMU: Implement KVM_CAP_SYNC_MMU")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310070530.aARZCSfh-lkp@intel.com/
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:10:56 +01:00
..
callback.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
commpage.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
commpage.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dyntrans.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
emulate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
entry.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fpu.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hypcall.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
interrupt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
interrupt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson_ipi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mips.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu.c MIPS: KVM: Fix a build warning about variable set but not used 2024-11-18 12:10:56 +01:00
msa.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tlb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trap_emul.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vz.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00