Skip to contentSkip to conversation

kernel/resource: Fix reserve_region_with_split() section mismatch.

PATCH Applied Paul Mundt 2 participants 2 messages Oct 22, 2008

lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 kernel/resource: Fix reserve_region_with_split() section mismatch.

reserve_region_with_split() calls in to __reserve_region_with_split(), which is an __init function. All callers of reserve_region_with_split() are also __init functions, so make it __init too.

---

 kernel/resource.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/resource.c +1 -1
index 4089d12..7fec0e4 100644
@@ -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)
 {
Applied
#1 lore raw
Quoted 2 lines · Paul Mundt

reserve_region_with_split() calls in to __reserve_region_with_split(), which is an __init function. [...]

applied to tip/core/urgent, thanks Paul!

Quoted 2 lines

[...] All callers of reserve_region_with_split() are also __init functions, so make it __init too.

... there's a single caller of that function ;-)

Ingo