diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-09-13 16:08:36 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-10-06 10:03:04 +0200 |
commit | dc52d2db892c4aa4469a01c43ccef2c8343c527c (patch) | |
tree | b88e9aac579207d6da164144ffdcc8061248770f /arch/m68k | |
parent | dc40c4297760be1b0be1a4a1e6bc74f269f1ab8b (diff) | |
download | lwn-dc52d2db892c4aa4469a01c43ccef2c8343c527c.tar.gz lwn-dc52d2db892c4aa4469a01c43ccef2c8343c527c.zip |
m68k: sun3: Make print_pte() static
When building with W=1:
arch/m68k/sun3/mmu_emu.c:70:6: warning: no previous prototype for ‘print_pte’ [-Wmissing-prototypes]
70 | void print_pte (pte_t pte)
| ^~~~~~~~~
Fix this by making print_pte() static.
There was never a user outside arch/m68k/sun3/mmu_emu.c.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/a56c70e85584efb3681cb7e94aff167299dfa5e4.1694613528.git.geert@linux-m68k.org
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/sun3/mmu_emu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/sun3/mmu_emu.c b/arch/m68k/sun3/mmu_emu.c index 7321b3b76283..7ec9bbf8a364 100644 --- a/arch/m68k/sun3/mmu_emu.c +++ b/arch/m68k/sun3/mmu_emu.c @@ -67,7 +67,7 @@ static unsigned char ctx_avail = CONTEXTS_NUM-1; unsigned long rom_pages[256]; /* Print a PTE value in symbolic form. For debugging. */ -void print_pte (pte_t pte) +static void print_pte(pte_t pte) { #if 0 /* Verbose version. */ |