aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorAlexandre Ghiti <[email protected]>2023-05-19 13:13:11 +0000
committerPalmer Dabbelt <[email protected]>2023-05-24 13:59:35 +0000
commit33d418da6f476b15e4510e0a590062583f63cd36 (patch)
tree4044dd997a05c352a08562c95e45ae2b6f5c3451 /lib/string_helpers.c
parentriscv: Fix orphan section warnings caused by kernel/pi (diff)
downloadkernel-33d418da6f476b15e4510e0a590062583f63cd36.tar.gz
kernel-33d418da6f476b15e4510e0a590062583f63cd36.zip
riscv: Fix unused variable warning when BUILTIN_DTB is set
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 <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions