diff options
author | Robert Jennings <rcj@linux.vnet.ibm.com> | 2013-10-28 10:20:51 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-30 01:00:31 -0400 |
commit | b88c4767d9e2290aaa22b8b3702ad72af0ebd113 (patch) | |
tree | 0f585d25688ee4aecdd2bb77bda72773eaf245cc | |
parent | ec32dd663da29d0e2e3ca964d6a94c683a6582a9 (diff) |
powerpc: Move local setup.h declarations to arch includes
Move the few declarations from arch/powerpc/kernel/setup.h
into arch/powerpc/include/asm/setup.h. This resolves a
sparse warning for arch/powerpc/mm/numa.c which defines
do_init_bootmem() but can't include the setup.h header
in the prior path.
Resolves:
arch/powerpc/mm/numa.c:998:13:
warning: symbol 'do_init_bootmem' was not declared.
Should it be static?
Signed-off-by: Robert C Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/include/asm/setup.h | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/module.c | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/module_32.c | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/module_64.c | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup.h | 9 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/vdso.c | 3 |
9 files changed, 8 insertions, 23 deletions
diff --git a/arch/powerpc/include/asm/setup.h b/arch/powerpc/include/asm/setup.h index d3ca85529b8b..703a8412dac2 100644 --- a/arch/powerpc/include/asm/setup.h +++ b/arch/powerpc/include/asm/setup.h | |||
@@ -23,6 +23,10 @@ extern void reloc_got2(unsigned long); | |||
23 | 23 | ||
24 | #define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x))) | 24 | #define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x))) |
25 | 25 | ||
26 | void check_for_initrd(void); | ||
27 | void do_init_bootmem(void); | ||
28 | void setup_panic(void); | ||
29 | |||
26 | #endif /* !__ASSEMBLY__ */ | 30 | #endif /* !__ASSEMBLY__ */ |
27 | 31 | ||
28 | #endif /* _ASM_POWERPC_SETUP_H */ | 32 | #endif /* _ASM_POWERPC_SETUP_H */ |
diff --git a/arch/powerpc/kernel/module.c b/arch/powerpc/kernel/module.c index 2d275707f419..9547381b631a 100644 --- a/arch/powerpc/kernel/module.c +++ b/arch/powerpc/kernel/module.c | |||
@@ -25,8 +25,7 @@ | |||
25 | #include <asm/uaccess.h> | 25 | #include <asm/uaccess.h> |
26 | #include <asm/firmware.h> | 26 | #include <asm/firmware.h> |
27 | #include <linux/sort.h> | 27 | #include <linux/sort.h> |
28 | 28 | #include <asm/setup.h> | |
29 | #include "setup.h" | ||
30 | 29 | ||
31 | LIST_HEAD(module_bug_list); | 30 | LIST_HEAD(module_bug_list); |
32 | 31 | ||
diff --git a/arch/powerpc/kernel/module_32.c b/arch/powerpc/kernel/module_32.c index 2e3200ca485f..6cff040bf456 100644 --- a/arch/powerpc/kernel/module_32.c +++ b/arch/powerpc/kernel/module_32.c | |||
@@ -26,8 +26,7 @@ | |||
26 | #include <linux/cache.h> | 26 | #include <linux/cache.h> |
27 | #include <linux/bug.h> | 27 | #include <linux/bug.h> |
28 | #include <linux/sort.h> | 28 | #include <linux/sort.h> |
29 | 29 | #include <asm/setup.h> | |
30 | #include "setup.h" | ||
31 | 30 | ||
32 | #if 0 | 31 | #if 0 |
33 | #define DEBUGP printk | 32 | #define DEBUGP printk |
diff --git a/arch/powerpc/kernel/module_64.c b/arch/powerpc/kernel/module_64.c index a102f4412392..12664c130d73 100644 --- a/arch/powerpc/kernel/module_64.c +++ b/arch/powerpc/kernel/module_64.c | |||
@@ -26,8 +26,7 @@ | |||
26 | #include <asm/firmware.h> | 26 | #include <asm/firmware.h> |
27 | #include <asm/code-patching.h> | 27 | #include <asm/code-patching.h> |
28 | #include <linux/sort.h> | 28 | #include <linux/sort.h> |
29 | 29 | #include <asm/setup.h> | |
30 | #include "setup.h" | ||
31 | 30 | ||
32 | /* FIXME: We don't do .init separately. To do this, we'd need to have | 31 | /* FIXME: We don't do .init separately. To do this, we'd need to have |
33 | a separate r2 value in the init and core section, and stub between | 32 | a separate r2 value in the init and core section, and stub between |
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 3d261c071fc8..febc80445d25 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c | |||
@@ -62,8 +62,6 @@ | |||
62 | #include <mm/mmu_decl.h> | 62 | #include <mm/mmu_decl.h> |
63 | #include <asm/fadump.h> | 63 | #include <asm/fadump.h> |
64 | 64 | ||
65 | #include "setup.h" | ||
66 | |||
67 | #ifdef DEBUG | 65 | #ifdef DEBUG |
68 | #include <asm/udbg.h> | 66 | #include <asm/udbg.h> |
69 | #define DBG(fmt...) udbg_printf(fmt) | 67 | #define DBG(fmt...) udbg_printf(fmt) |
diff --git a/arch/powerpc/kernel/setup.h b/arch/powerpc/kernel/setup.h deleted file mode 100644 index 4c67ad7fae08..000000000000 --- a/arch/powerpc/kernel/setup.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef _POWERPC_KERNEL_SETUP_H | ||
2 | #define _POWERPC_KERNEL_SETUP_H | ||
3 | |||
4 | void check_for_initrd(void); | ||
5 | void do_init_bootmem(void); | ||
6 | void setup_panic(void); | ||
7 | extern int do_early_xmon; | ||
8 | |||
9 | #endif /* _POWERPC_KERNEL_SETUP_H */ | ||
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index a4bbcae72578..b903dc5cf944 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -40,8 +40,6 @@ | |||
40 | #include <asm/mmu_context.h> | 40 | #include <asm/mmu_context.h> |
41 | #include <asm/epapr_hcalls.h> | 41 | #include <asm/epapr_hcalls.h> |
42 | 42 | ||
43 | #include "setup.h" | ||
44 | |||
45 | #define DBG(fmt...) | 43 | #define DBG(fmt...) |
46 | 44 | ||
47 | extern void bootx_init(unsigned long r4, unsigned long phys); | 45 | extern void bootx_init(unsigned long r4, unsigned long phys); |
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 278ca93e1f28..4085aaa9478f 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -68,8 +68,6 @@ | |||
68 | #include <asm/hugetlb.h> | 68 | #include <asm/hugetlb.h> |
69 | #include <asm/epapr_hcalls.h> | 69 | #include <asm/epapr_hcalls.h> |
70 | 70 | ||
71 | #include "setup.h" | ||
72 | |||
73 | #ifdef DEBUG | 71 | #ifdef DEBUG |
74 | #define DBG(fmt...) udbg_printf(fmt) | 72 | #define DBG(fmt...) udbg_printf(fmt) |
75 | #else | 73 | #else |
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index 1d9c92621b36..094e45c16a17 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c | |||
@@ -34,8 +34,7 @@ | |||
34 | #include <asm/firmware.h> | 34 | #include <asm/firmware.h> |
35 | #include <asm/vdso.h> | 35 | #include <asm/vdso.h> |
36 | #include <asm/vdso_datapage.h> | 36 | #include <asm/vdso_datapage.h> |
37 | 37 | #include <asm/setup.h> | |
38 | #include "setup.h" | ||
39 | 38 | ||
40 | #undef DEBUG | 39 | #undef DEBUG |
41 | 40 | ||