[PATCH] resource: fix section mismatch

From: Johannes Berg
Date: Wed Oct 29 2008 - 09:50:34 EST


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 <johannes@xxxxxxxxxxxxxxxx>
---
kernel/resource.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- everything.orig/kernel/resource.c 2008-10-29 02:49:07.000000000 +0100
+++ everything/kernel/resource.c 2008-10-29 02:49:19.000000000 +0100
@@ -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)
{


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/