linux/arch/mips
Huacai Chen 8bdcaa7c03 MIPS: KVM: Fix a build warning about variable set but not used
[ Upstream commit 83767a67e7 ]

After commit 411740f542 ("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: 411740f542 ("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>
2023-12-03 07:32:09 +01:00
..
alchemy MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled 2023-10-06 14:56:45 +02:00
ar7
ath25
ath79
bcm47xx
bcm63xx MIPS: BCM63xx: Add check for NULL for clk in clk_enable 2022-12-31 13:32:00 +01:00
bmips mips: bmips: BCM6358: disable RAC flush for TP1 2023-04-06 12:10:42 +02:00
boot MIPS: DTS: CI20: fix otg power gpio 2023-03-10 09:34:30 +01:00
cavium-octeon MIPS: OCTEON: warn only once if deprecated link status is being used 2022-12-31 13:32:00 +01:00
cobalt
configs - hfs and hfsplus kmap API modernization from Fabio Francesco 2022-10-12 11:00:22 -07:00
crypto
dec
fw MIPS: fw: Allow firmware to pass a empty env 2023-05-11 23:03:01 +09:00
generic
include MIPS: cpu-features: Use boot_cpu_type for CPU type based features 2023-08-30 16:10:58 +02:00
ingenic
jazz
kernel mips/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:03:47 +02:00
kvm MIPS: KVM: Fix a build warning about variable set but not used 2023-12-03 07:32:09 +01:00
lantiq - mainly cleanups 2022-10-03 09:31:55 -07:00
lib MIPS: Simplify __bswapdi2() and __bswapsi2() 2022-09-30 16:50:00 +02:00
loongson2ef MIPS: Loongson: Move arch cflags to MIPS top level Makefile 2023-08-03 10:23:50 +02:00
loongson32
loongson64 MIPS: Loongson: Move arch cflags to MIPS top level Makefile 2023-08-03 10:23:50 +02:00
math-emu
mm mips/mm: Convert to using lock_mm_and_find_vma() 2023-07-01 13:16:24 +02:00
mti-malta
n64
net
pci MIPS: pci: lantiq: switch to using gpiod API 2022-10-01 18:07:51 +02:00
pic32 MIPS: pic32: treat port as signed integer 2022-11-11 15:53:58 +01:00
power
ralink of/fdt: run soc memory setup when early_init_dt_scan_memory fails 2023-01-12 12:02:51 +01:00
rb532
sgi-ip22
sgi-ip27
sgi-ip30
sgi-ip32
sibyte
sni
tools
txx9
vdso MIPS: Use "grep -E" instead of "egrep" 2023-09-23 11:11:08 +02:00
Kbuild
Kbuild.platforms
Kconfig Revert "MIPS: unhide PATA_PLATFORM" 2023-09-13 09:42:20 +02:00
Kconfig.debug
Makefile MIPS: Use "grep -E" instead of "egrep" 2023-09-23 11:11:08 +02:00
Makefile.postlink