Skip to content

Commit 87d7186

Browse files
committed
m68k: mm: Move paging_init() to common <asm/pgtable.h>
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
1 parent 2c0bb8c commit 87d7186

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

arch/m68k/include/asm/pgtable.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef __M68K_PGTABLE_H
3+
#define __M68K_PGTABLE_H
4+
25
#ifdef __uClinux__
36
#include <asm/pgtable_no.h>
47
#else
58
#include <asm/pgtable_mm.h>
69
#endif
10+
11+
#ifndef __ASSEMBLY__
12+
extern void paging_init(void);
13+
#endif
14+
15+
#endif /* __M68K_PGTABLE_H */

arch/m68k/include/asm/pgtable_no.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#define PAGE_READONLY __pgprot(0)
2929
#define PAGE_KERNEL __pgprot(0)
3030

31-
extern void paging_init(void);
3231
#define swapper_pg_dir ((pgd_t *) 0)
3332

3433
/*

arch/m68k/kernel/setup_mm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ EXPORT_SYMBOL(isa_sex);
107107

108108
#define MASK_256K 0xfffc0000
109109

110-
extern void paging_init(void);
111-
112110
static void __init m68k_parse_bootinfo(const struct bi_record *record)
113111
{
114112
const struct bi_record *first_record = record;

0 commit comments

Comments
 (0)