kernel/resource: fix reserve_region_with_split() section mismatch
authorPaul Mundt <lethal@linux-sh.org>
Wed, 22 Oct 2008 10:31:11 +0000 (19:31 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 23 Oct 2008 19:54:34 +0000 (21:54 +0200)
Impact: cleanup, small kernel text size reduction, no functionality changed

reserve_region_with_split() calls in to __reserve_region_with_split(),
which is an __init function. The only caller of reserve_region_with_split()
is an __init function, so make it __init too.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/resource.c

index 4089d12af6e0eda2aa15cc8c145940f1bd12056c..7fec0e4272342c162d1f8b8d09bb7a824f11393e 100644 (file)
@@ -571,7 +571,7 @@ static void __init __reserve_region_with_split(struct resource *root,
 
 }
 
-void reserve_region_with_split(struct resource *root,
+void __init reserve_region_with_split(struct resource *root,
                resource_size_t start, resource_size_t end,
                const char *name)
 {