arch/x86/mm/init_32.c: quiet sparse noise; local functions should be static
PATCH 1/1 arch/x86/mm/init_32.c: quiet sparse noise; local functions should be static
Local functions should be marked static. This quiets the following sparse noise:
warning: symbol 'lowmem_pfn_init' was not declared. Should it be static?
warning: symbol 'highmem_pfn_init' was not declared. Should it be static?
Signed-off-by H Hartley Sweeten <hsweeten@visionengravers,com>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Tejun Heo <[email protected]>
Cc Yinghai Lu <[email protected]>
Cc Borislav Petkov <[email protected]>
---
arch/x86/mm/init_32.c +2 -2
@@ -560,7 +560,7 @@ early_param("highmem", parse_highmem);* artificially via the highmem=x boot parameter then create * it: */ -void __init lowmem_pfn_init (void ) +static void __init lowmem_pfn_init (void ) {/* max_low_pfn is 0, we already have early_res support */ max_low_pfn = max_pfn;
@@ -596,7 +596,7 @@ void __init lowmem_pfn_init(void)* We have more RAM than fits into lowmem - we try to put it into * highmem, also taking the highmem=x boot parameter into account: */ -void __init highmem_pfn_init (void ) +static void __init highmem_pfn_init (void ) { max_low_pfn =MAXMEM_PFN ;
Quoted 6 lines · H Hartley Sweeten
Local functions should be marked static. This quiets the following sparse noise:
warning: symbol '
lowmem_pfn_init' was not declared. Should it be static?
warning: symbol 'highmem_pfn_init' was not declared. Should it be static?
Quoted 7 lines
Signed-off-by H Hartley Sweeten <hsweeten@visionengravers,com>Cc Thomas Gleixner <[email protected]>Cc Ingo Molnar <[email protected]>Cc "H. Peter Anvin" <[email protected]>Cc Tejun Heo <[email protected]>Cc Yinghai Lu <[email protected]>Cc Borislav Petkov <[email protected]>
Looks good to me.
Reviewed-by Tejun Heo <[email protected]>
Thanks.
Signature · 1 line
tejun