Skip to content

Commit 627f06c

Browse files
chleroympe
authored andcommitted
powerpc/book3e: move early_alloc_pgtable() to init section
early_alloc_pgtable() is only used during init. Reviewed-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent e7a7be5 commit 627f06c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/mm/nohash/book3e_pgtable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void vmemmap_remove_mapping(unsigned long start,
5555
#endif
5656
#endif /* CONFIG_SPARSEMEM_VMEMMAP */
5757

58-
static __ref void *early_alloc_pgtable(unsigned long size)
58+
static void __init *early_alloc_pgtable(unsigned long size)
5959
{
6060
void *ptr;
6161

@@ -74,7 +74,7 @@ static __ref void *early_alloc_pgtable(unsigned long size)
7474
* map_kernel_page adds an entry to the ioremap page table
7575
* and adds an entry to the HPT, possibly bolting it
7676
*/
77-
int map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot)
77+
int __ref map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot)
7878
{
7979
pgd_t *pgdp;
8080
pud_t *pudp;

0 commit comments

Comments
 (0)