Skip to content

Commit ad1cfe6

Browse files
arndbRussell King (Oracle)
authored andcommitted
ARM: 9308/1: move setup functions to header
A couple of functions are declared in arch/arm/mm/mmu.c rather than in a header, which causes W=1 build warnings: arch/arm/mm/init.c:97:13: error: no previous prototype for 'setup_dma_zone' [-Werror=missing-prototypes] arch/arm/mm/mmu.c:118:13: error: no previous prototype for 'init_default_cache_policy' [-Werror=missing-prototypes] arch/arm/mm/mmu.c:1195:13: error: no previous prototype for 'adjust_lowmem_bounds' [-Werror=missing-prototypes] arch/arm/mm/mmu.c:1761:13: error: no previous prototype for 'paging_init' [-Werror=missing-prototypes] arch/arm/mm/mmu.c:1794:13: error: no previous prototype for 'early_mm_init' [-Werror=missing-prototypes] Move the declaratsion to asm/setup.h so they can be seen by the compiler while building the definition. Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 3665f85 commit ad1cfe6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

arch/arm/include/asm/setup.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,11 @@ extern void save_atags(const struct tag *tags);
2828
static inline void save_atags(const struct tag *tags) { }
2929
#endif
3030

31+
struct machine_desc;
32+
void init_default_cache_policy(unsigned long);
33+
void paging_init(const struct machine_desc *desc);
34+
void early_mm_init(const struct machine_desc *);
35+
void adjust_lowmem_bounds(void);
36+
void setup_dma_zone(const struct machine_desc *desc);
37+
3138
#endif

arch/arm/kernel/setup.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@ static int __init fpe_setup(char *line)
7676
__setup("fpe=", fpe_setup);
7777
#endif
7878

79-
extern void init_default_cache_policy(unsigned long);
80-
extern void paging_init(const struct machine_desc *desc);
81-
extern void early_mm_init(const struct machine_desc *);
82-
extern void adjust_lowmem_bounds(void);
83-
extern enum reboot_mode reboot_mode;
84-
extern void setup_dma_zone(const struct machine_desc *desc);
85-
8679
unsigned int processor_id;
8780
EXPORT_SYMBOL(processor_id);
8881
unsigned int __machine_arch_type __read_mostly;

0 commit comments

Comments
 (0)