android_kernel_samsung_sm8650/arch/riscv/mm
Alexandre Ghiti ddd8d552a8 riscv: Fix unused variable warning when BUILTIN_DTB is set
[ Upstream commit 33d418da6f476b15e4510e0a590062583f63cd36 ]

commit ef69d2559fe9 ("riscv: Move early dtb mapping into the fixmap
region") wrongly moved the #ifndef CONFIG_BUILTIN_DTB surrounding the pa
variable definition in create_fdt_early_page_table(), so move it back to
its right place to quiet the following warning:

../arch/riscv/mm/init.c: In function ‘create_fdt_early_page_table’:
../arch/riscv/mm/init.c:925:12: warning: unused variable ‘pa’ [-Wunused-variable]
  925 |  uintptr_t pa = dtb_pa & ~(PMD_SIZE - 1);

Fixes: ef69d2559fe9 ("riscv: Move early dtb mapping into the fixmap region")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230519131311.391960-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:34:00 +02:00
..
cacheflush.c riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte 2023-02-14 19:11:53 +01:00
context.c riscv: mm: Fix incorrect ASID argument when flushing TLB 2023-03-30 12:49:28 +02:00
dma-noncoherent.c RISC-V: Fix compilation without RISCV_ISA_ZICBOM 2022-10-21 11:52:39 +05:30
extable.c riscv: extable: fix err reg writing in dedicated uaccess handler 2022-02-08 17:02:47 -08:00
fault.c riscv, mm: Perform BPF exhandler fixup on page fault 2023-03-10 09:34:30 +01:00
hugetlbpage.c hugetlbfs: remove hugetlb_add_hstate() warning for existing hstate 2020-06-03 20:09:46 -07:00
init.c riscv: Fix unused variable warning when BUILTIN_DTB is set 2023-06-09 10:34:00 +02:00
kasan_init.c riscv: mm: add missing memcpy in kasan_init 2022-10-27 14:55:58 -07:00
Makefile riscv: Add support for non-coherent devices using zicbom extension 2022-07-28 15:30:51 -07:00
pageattr.c RISC-V: mm: Enable huge page support to kernel_page_present() function 2023-05-17 11:53:34 +02:00
physaddr.c riscv: Fix crash during early errata patching 2022-12-31 13:32:37 +01:00
ptdump.c riscv: Fix ptdump when KASAN is enabled 2023-05-11 23:03:32 +09:00
tlbflush.c riscv: mm: Fix incorrect ASID argument when flushing TLB 2023-03-30 12:49:28 +02:00