xen: fix p2m section mismatches
Subsystems (3)
PATCH 1/1 xen: fix p2m section mismatches
From: Randy Dunlap <[email protected]>
Fix section mismatch warnings:set_phys_range_identity() is called by __init xen_set_identity(), so also mark set_phys_range_identity() as __init.
then:__early_alloc_p2m() is called set_phys_range_identity(), so also mark __early_alloc_p2m() as __init.
WARNING: arch/x86/built-in.o(.text+0x7856): Section mismatch in reference from the function __early_alloc_p2m() to the function .init.text:extend_brk() The function __early_alloc_p2m() references
the function __init extend_brk().
This is often because __early_alloc_p2m lacks a __init
annotation or the annotation of extend_brk is wrong.
WARNING: arch/x86/built-in.o(.text+0x7967): Section mismatch in reference from the function set_phys_range_identity() to the function .init.text:extend_brk() The function set_phys_range_identity() references
the function __init extend_brk().
This is often because set_phys_range_identity lacks a __init
annotation or the annotation of extend_brk is wrong.
--- arch/x86/xen/p2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/xen/p2m.c +2 -2
@@ -497,7 +497,7 @@ static bool alloc_p2m(unsigned long pfn)return true; } -bool __early_alloc_p2m (unsigned long pfn) +bool __init __early_alloc_p2m (unsigned long pfn) {unsigned topidx, mididx, idx;
@@ -530,7 +530,7 @@ bool __early_alloc_p2m(unsigned long pfn }return idx !=0 ; } -unsigned long set_phys_range_identity (unsigned long pfn_s, +unsigned long __init set_phys_range_identity (unsigned long pfn_s,unsigned long pfn_e) {unsigned long pfn;
Quoted 29 lines · On Thu, 24 Mar 2011 13:34:32 -0700 Randy Dunlap <[email protected]> wrote:
From: Randy Dunlap <[email protected]>
Fix section mismatch warnings:
set_phys_range_identity()is called by__initxen_set_identity(), so also markset_phys_range_identity()as__init.
then:__early_alloc_p2m()is calledset_phys_range_identity(), so also mark__early_alloc_p2m()as__init.WARNING: arch/x86/built-in.o(.text+0x7856): Section mismatch in reference from the function
__early_alloc_p2m()to the function .init.text:extend_brk() The function__early_alloc_p2m()references
the function__initextend_brk().
This is often because__early_alloc_p2mlacks a__init
annotation or the annotation ofextend_brkis wrong.WARNING: arch/x86/built-in.o(.text+0x7967): Section mismatch in reference from the function
set_phys_range_identity()to the function .init.text:extend_brk() The functionset_phys_range_identity()references
the function__initextend_brk().
This is often becauseset_phys_range_identitylacks a__init
annotation or the annotation ofextend_brkis wrong.Signed-off-by Randy Dunlap <[email protected]>--- arch/x86/xen/p2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/xen/p2m.c static bool alloc_p2m(unsigned long pfn) · line 500
Quoted 5 lines
arch/x86/xen/p2m.c +1
-1@@ -497,7 +497,7 @@ static bool alloc_p2m(unsigned long pfn)return true; } -bool __early_alloc_p2m (unsigned long pfn) +bool __init __early_alloc_p2m (unsigned long pfn)
__early_alloc_p2m could be static as well.
Quoted 35 lines · Stephen Hemminger
Quoted 32 lines · On Thu, 24 Mar 2011 13:34:32 -0700 Randy Dunlap <[email protected]> wrote:
From: Randy Dunlap <[email protected]>
Fix section mismatch warnings:
set_phys_range_identity()is called by__initxen_set_identity(), so also markset_phys_range_identity()as__init.
then:__early_alloc_p2m()is calledset_phys_range_identity(), so also mark__early_alloc_p2m()as__init.WARNING: arch/x86/built-in.o(.text+0x7856): Section mismatch in reference from the function
__early_alloc_p2m()to the function .init.text:extend_brk() The function__early_alloc_p2m()references
the function__initextend_brk().
This is often because__early_alloc_p2mlacks a__init
annotation or the annotation ofextend_brkis wrong.WARNING: arch/x86/built-in.o(.text+0x7967): Section mismatch in reference from the function
set_phys_range_identity()to the function .init.text:extend_brk() The functionset_phys_range_identity()references
the function__initextend_brk().
This is often becauseset_phys_range_identitylacks a__init
annotation or the annotation ofextend_brkis wrong.Signed-off-by Randy Dunlap <[email protected]>--- arch/x86/xen/p2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/x86/xen/p2m.c +0
-0@@ -497,7 +497,7 @@ static bool alloc_p2m(unsigned long pfn)return true; }
Quoted 4 lines
arch/x86/xen/p2m.c static bool alloc_p2m(unsigned long pfn) · line 500
Quoted 2 lines
arch/x86/xen/p2m.c +1
-1-bool __early_alloc_p2m (unsigned long pfn) +bool __init __early_alloc_p2m (unsigned long pfn)
__early_alloc_p2mcould be static as well.
<nods> Let me queue it up for rc1. Thanks guys.
Quoted 35 lines · Stephen Hemminger
Quoted 32 lines · On Thu, 24 Mar 2011 13:34:32 -0700 Randy Dunlap <[email protected]> wrote:
From: Randy Dunlap <[email protected]>
Fix section mismatch warnings:
set_phys_range_identity()is called by__initxen_set_identity(), so also markset_phys_range_identity()as__init.
then:__early_alloc_p2m()is calledset_phys_range_identity(), so also mark__early_alloc_p2m()as__init.WARNING: arch/x86/built-in.o(.text+0x7856): Section mismatch in reference from the function
__early_alloc_p2m()to the function .init.text:extend_brk() The function__early_alloc_p2m()references
the function__initextend_brk().
This is often because__early_alloc_p2mlacks a__init
annotation or the annotation ofextend_brkis wrong.WARNING: arch/x86/built-in.o(.text+0x7967): Section mismatch in reference from the function
set_phys_range_identity()to the function .init.text:extend_brk() The functionset_phys_range_identity()references
the function__initextend_brk().
This is often becauseset_phys_range_identitylacks a__init
annotation or the annotation ofextend_brkis wrong.Signed-off-by Randy Dunlap <[email protected]>--- arch/x86/xen/p2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/x86/xen/p2m.c +0
-0@@ -497,7 +497,7 @@ static bool alloc_p2m(unsigned long pfn)return true; }
Quoted 4 lines
arch/x86/xen/p2m.c static bool alloc_p2m(unsigned long pfn) · line 500
Quoted 2 lines
arch/x86/xen/p2m.c +1
-1-bool __early_alloc_p2m (unsigned long pfn) +bool __init __early_alloc_p2m (unsigned long pfn)
__early_alloc_p2mcould be static as well.
<nods> Let me queue it up for rc1. Thanks guys.