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

From: Paul Mundt
Date: Wed Oct 22 2008 - 06:31:47 EST


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 <lethal@xxxxxxxxxxxx>

---

kernel/resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/resource.c b/kernel/resource.c
index 4089d12..7fec0e4 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -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)
{
--
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/