Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/fsl_booke: Make calc_cam_sz() static

calc_cam_sz() is used only in fsl_book3e.c, make it static.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a7469848371b2cf5e8f654ec79800e209d88595e.1660919200.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
f7d5f007 e38cd72c

+2 -4
-2
arch/powerpc/mm/mmu_decl.h
··· 122 122 #ifdef CONFIG_PPC_FSL_BOOK3E 123 123 extern unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx, 124 124 bool dryrun, bool init); 125 - extern unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, 126 - phys_addr_t phys); 127 125 #ifdef CONFIG_PPC32 128 126 extern void adjust_total_lowmem(void); 129 127 extern int switch_to_as1(void);
+2 -2
arch/powerpc/mm/nohash/fsl_book3e.c
··· 135 135 tlbcam_addrs[index].phys = phys; 136 136 } 137 137 138 - unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, 139 - phys_addr_t phys) 138 + static unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, 139 + phys_addr_t phys) 140 140 { 141 141 unsigned int camsize = __ilog2(ram); 142 142 unsigned int align = __ffs(virt | phys);