Skip to content

Commit a7c234a

Browse files
geertuglaubitz
authored andcommitted
sh: pgtable: Fix missing prototypes
arch/sh/mm/pgtable.c:12:6: warning: no previous prototype for 'pgd_ctor' [-Wmissing-prototypes] arch/sh/mm/pgtable.c:34:8: warning: no previous prototype for 'pgd_alloc' [-Wmissing-prototypes] arch/sh/mm/pgtable.c:39:6: warning: no previous prototype for 'pgd_free' [-Wmissing-prototypes] arch/sh/mm/pgtable.c:45:6: warning: no previous prototype for 'pud_populate' [-Wmissing-prototypes] arch/sh/mm/pgtable.c:50:8: warning: no previous prototype for 'pmd_alloc_one' [-Wmissing-prototypes] arch/sh/mm/pgtable.c:55:6: warning: no previous prototype for 'pmd_free' [-Wmissing-prototypes] Make pgd_ctor() static, as it is only used in this file. Include <asm/pgalloc.h> to fix the other warnings. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/aa1328ea3327d6685aab76d5787cb77c996052c0.1709326528.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
1 parent 4cece76 commit a7c234a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/sh/mm/pgtable.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
#include <linux/mm.h>
33
#include <linux/slab.h>
44

5+
#include <asm/pgalloc.h>
6+
57
static struct kmem_cache *pgd_cachep;
68
#if PAGETABLE_LEVELS > 2
79
static struct kmem_cache *pmd_cachep;
810
#endif
911

10-
void pgd_ctor(void *x)
12+
static void pgd_ctor(void *x)
1113
{
1214
pgd_t *pgd = x;
1315

0 commit comments

Comments
 (0)