resource.c: Fixing section mismatch warning .
PATCH 1/1 resource.c: Fixing section mismatch warning .
LD kernel/built-in.o
WARNING: kernel/built-in.o(.text+0xfcad): Section mismatch in reference from the function reserve_region_with_split() to the function .init.text:__reserve_region_with_split()
The function reserve_region_with_split() references
the function __init __reserve_region_with_split().
This is often because reserve_region_with_split lacks a __init annotation or the annotation of __reserve_region_with_split is wrong.
This patch fixes the above warning.
Thanks.
kernel/resource.c +1 -1
@@ -571,7 +571,7 @@ 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) {
Quoted 11 lines · Rakib Mullick
LD
kernel/built-in.o
WARNING: kernel/built-in.o(.text+0xfcad): Section mismatch in reference from the functionreserve_region_with_split()to the function .init.text:__reserve_region_with_split()
The functionreserve_region_with_split()references
the function__init__reserve_region_with_split().
This is often becausereserve_region_with_splitlacks a__initannotation or the annotation of__reserve_region_with_splitis wrong.This patch fixes the above warning.
I'm sorry. This problem has been fixed. I should've check this before sending this patch.
Again, sorry.
Quoted 16 lines
Thanks.
Signed-off-by Md.Rakib H. Mullick <[email protected]>---
linux-2.6-orig/kernel/resource.c2008-10-28 20:52:38.000000000 +0600
+++linux-2.6/kernel/resource.c2008-10-28 22:34:44.000000000 +0600 @@ -571,7 +571,7 @@ static void__init__reserve_region_with}-void reserve_region_with_split(struct resource *root, +void
__initreserve_region_with_split(struct resource *root,
resource_size_tstart,resource_size_tend, const char *name)
{