Skip to content

Commit f83050a

Browse files
RISC-V: Avoid empty create_*_mapping definitions
These trigger a handful of build warnings. Reported-by: kernel test robot <[email protected]> Fixes: 677b9eb ("riscv: mm: Prepare pt_ops helper functions for sv57") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 3123109 commit f83050a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/riscv/mm/init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ static void __init create_p4d_mapping(p4d_t *p4dp,
567567
create_pte_mapping(__nextp, __va, __pa, __sz, __prot)
568568
#define fixmap_pgd_next ((uintptr_t)fixmap_pte)
569569
#define early_dtb_pgd_next ((uintptr_t)early_dtb_pmd)
570-
#define create_p4d_mapping(__pmdp, __va, __pa, __sz, __prot)
571-
#define create_pud_mapping(__pmdp, __va, __pa, __sz, __prot)
572-
#define create_pmd_mapping(__pmdp, __va, __pa, __sz, __prot)
570+
#define create_p4d_mapping(__pmdp, __va, __pa, __sz, __prot) do {} while(0)
571+
#define create_pud_mapping(__pmdp, __va, __pa, __sz, __prot) do {} while(0)
572+
#define create_pmd_mapping(__pmdp, __va, __pa, __sz, __prot) do {} while(0)
573573
#endif /* __PAGETABLE_PMD_FOLDED */
574574

575575
void __init create_pgd_mapping(pgd_t *pgdp,

0 commit comments

Comments
 (0)