resource: fix section mismatch
PATCH 1/1 resource: fix section mismatch
reserve_region_with_list uses __reserve_region_with_split which is __init, and is used only from e820 init which is __init too, so it can be __init. Fixes a section mismatch warning.
Signed-off-by Johannes Berg <[email protected]>
--- kernel/resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/resource.c +2 -1
@@ -571,7 +571,8 @@ static void __init __reserve_region_with } -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) {