mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-19 07:13:20 +00:00
When building with W=1:
arch/m68k/mm/motorola.c:414:13: warning: no previous prototype for ‘paging_init’ [-Wmissing-prototypes]
414 | void __init paging_init(void)
| ^~~~~~~~~~~
arch/m68k/mm/sun3mmu.c:36:13: warning: no previous prototype for ‘paging_init’ [-Wmissing-prototypes]
36 | void __init paging_init(void)
| ^~~~~~~~~~~
Fix this by consolidating the multiple prototypes into the common
<asm/pgtable.h>.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/1b03fde54f205e972e19959b8e335022205d538c.1694613528.git.geert@linux-m68k.org
16 lines
269 B
C
16 lines
269 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __M68K_PGTABLE_H
|
|
#define __M68K_PGTABLE_H
|
|
|
|
#ifdef __uClinux__
|
|
#include <asm/pgtable_no.h>
|
|
#else
|
|
#include <asm/pgtable_mm.h>
|
|
#endif
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern void paging_init(void);
|
|
#endif
|
|
|
|
#endif /* __M68K_PGTABLE_H */
|