kernel/resource: Fix reserve_region_with_split() section mismatch.
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.
Signed-off-by Paul Mundt <[email protected]>
---
kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/resource.c +1 -1
@@ -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) {
Ingo Molnar
AppliedQuoted 2 lines · Paul Mundt
reserve_region_with_split()calls in to__reserve_region_with_split(), which is an__initfunction. [...]
applied to tip/core/urgent, thanks Paul!
Quoted 2 lines
[...] All callers of
reserve_region_with_split()are also__initfunctions, so make it__inittoo.
... there's a single caller of that function ;-)
Ingo