Skip to content

Commit 6f8675a

Browse files
chleroympe
authored andcommitted
powerpc/e500: Add missing prototype for 'relocate_init'
Kernel test robot reports: arch/powerpc/mm/nohash/e500.c:314:21: warning: no previous prototype for 'relocate_init' [-Wmissing-prototypes] 314 | notrace void __init relocate_init(u64 dt_ptr, phys_addr_t start) | ^~~~~~~~~~~~~ Add it in mm/mmu_decl.h, close to associated is_second_reloc variable declaration. Reported-by: kernel test robot <[email protected]> Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Link: https://lore.kernel.org/r/ac9107acf24135e1a07e8f84d2090572d43e3fe4.1676712510.git.christophe.leroy@csgroup.eu
1 parent 38d73b6 commit 6f8675a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/mm/mmu_decl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ extern int switch_to_as1(void);
120120
extern void restore_to_as0(int esel, int offset, void *dt_ptr, int bootcpu);
121121
void create_kaslr_tlb_entry(int entry, unsigned long virt, phys_addr_t phys);
122122
void reloc_kernel_entry(void *fdt, int addr);
123+
void relocate_init(u64 dt_ptr, phys_addr_t start);
123124
extern int is_second_reloc;
124125
#endif
125126
extern void loadcam_entry(unsigned int index);

0 commit comments

Comments
 (0)