Skip to contentSkip to conversation

resource: fix section mismatch

PATCH New Johannes Berg 1 participant 1 message Oct 29, 2008

lore
Share & tools
lore
#0 lore raw

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.

---
 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)
 {