diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-06-25 15:15:24 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-26 05:08:54 -0500 |
commit | a4df02a217e9787a4b967197d9d9030c3e3c1088 (patch) | |
tree | 4f32cbd30553494fa55d1cf2ecf294265196dc69 /arch/m68k/sun3 | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) |
m68k: Mark functions only called from setup_arch() __init
Some functions that are only called (indirectly) from setup_arch() lack
__init annotations.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/sun3')
-rw-r--r-- | arch/m68k/sun3/dvma.c | 6 | ||||
-rw-r--r-- | arch/m68k/sun3/mmu_emu.c | 3 | ||||
-rw-r--r-- | arch/m68k/sun3/sun3dvma.c | 3 |
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/m68k/sun3/dvma.c b/arch/m68k/sun3/dvma.c index d522eaab4551..d95506e06c2a 100644 --- a/arch/m68k/sun3/dvma.c +++ b/arch/m68k/sun3/dvma.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * | 7 | * |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/init.h> | ||
10 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
11 | #include <linux/mm.h> | 12 | #include <linux/mm.h> |
12 | #include <linux/bootmem.h> | 13 | #include <linux/bootmem.h> |
@@ -62,10 +63,7 @@ int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, | |||
62 | 63 | ||
63 | } | 64 | } |
64 | 65 | ||
65 | void sun3_dvma_init(void) | 66 | void __init sun3_dvma_init(void) |
66 | { | 67 | { |
67 | |||
68 | memset(ptelist, 0, sizeof(ptelist)); | 68 | memset(ptelist, 0, sizeof(ptelist)); |
69 | |||
70 | |||
71 | } | 69 | } |
diff --git a/arch/m68k/sun3/mmu_emu.c b/arch/m68k/sun3/mmu_emu.c index 8edc510a21be..3f258e230ba5 100644 --- a/arch/m68k/sun3/mmu_emu.c +++ b/arch/m68k/sun3/mmu_emu.c | |||
@@ -6,6 +6,7 @@ | |||
6 | ** Started 1/16/98 @ 2:22 am | 6 | ** Started 1/16/98 @ 2:22 am |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/init.h> | ||
9 | #include <linux/mman.h> | 10 | #include <linux/mman.h> |
10 | #include <linux/mm.h> | 11 | #include <linux/mm.h> |
11 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
@@ -122,7 +123,7 @@ void print_pte_vaddr (unsigned long vaddr) | |||
122 | /* | 123 | /* |
123 | * Initialise the MMU emulator. | 124 | * Initialise the MMU emulator. |
124 | */ | 125 | */ |
125 | void mmu_emu_init(unsigned long bootmem_end) | 126 | void __init mmu_emu_init(unsigned long bootmem_end) |
126 | { | 127 | { |
127 | unsigned long seg, num; | 128 | unsigned long seg, num; |
128 | int i,j; | 129 | int i,j; |
diff --git a/arch/m68k/sun3/sun3dvma.c b/arch/m68k/sun3/sun3dvma.c index cab54482ca34..ca57966ec3a2 100644 --- a/arch/m68k/sun3/sun3dvma.c +++ b/arch/m68k/sun3/sun3dvma.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * Contains common routines for sun3/sun3x DVMA management. | 6 | * Contains common routines for sun3/sun3x DVMA management. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/init.h> | ||
9 | #include <linux/module.h> | 10 | #include <linux/module.h> |
10 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
11 | #include <linux/gfp.h> | 12 | #include <linux/gfp.h> |
@@ -245,7 +246,7 @@ static inline int free_baddr(unsigned long baddr) | |||
245 | 246 | ||
246 | } | 247 | } |
247 | 248 | ||
248 | void dvma_init(void) | 249 | void __init dvma_init(void) |
249 | { | 250 | { |
250 | 251 | ||
251 | struct hole *hole; | 252 | struct hole *hole; |