x86-rest: fix sparse warnings
Subsystems (2)
PATCH 1/1 x86-rest: fix sparse warnings
CHECK arch/x86/mm/init_32.carch/x86/mm/init_32.c:290:13: warning: symbol 'add_one_highpage_init' was not declared. Should it be static? arch/x86/mm/init_32.c:437:6: warning: symbol 'zap_low_mappings' was not declared. Should it be static? arch/x86/mm/init_32.c:774:6: warning: symbol 'free_initmem' was not declared. Should it be static?
CHECK arch/x86/mm/fault.carch/x86/mm/fault.c:581:16: warning: symbol 'do_page_fault' was not declared. Should it be static?
CHECK arch/x86/mm/pat.carch/x86/mm/pat.c:566:6: warning: symbol 'map_devmem' was not declared. Should it be static? arch/x86/mm/pat.c:583:6: warning: symbol 'unmap_devmem' was not declared. Should it be static?
CHECK arch/x86/mm/pgtable_32.carch/x86/mm/pgtable_32.c:115:6: warning: symbol 'set_pmd_pfn' was not declared. Should it be static?
CHECK arch/x86/mach-default/setup.carch/x86/mach-default/setup.c:19:5: warning: symbol 'no_broadcast' was not declared. Should it be static?
--- arch/x86/mach-default/setup.c | 2 +- include/asm-x86/pat.h | 3 +++ include/asm-x86/pgtable_32.h | 6 ++++++ include/asm-x86/setup.h | 1 + 4 files changed, 11 insertions(+), 1 deletions(-)
arch/x86/mach-default/setup.c +1 -1
@@ -16,7 +16,7 @@#define DEFAULT_SEND_IPI (0)#endif -int no_broadcastÞFAULT_SEND_IPI; +int no_broadcast =DEFAULT_SEND_IPI ;/** * pre_intr_init_hook - initialisation prior to setting up interrupt vectors
include/asm-x86/pat.h +3 -0
@@ -20,5 +20,8 @@ extern int free_memtype(u64 start, u64 end);extern void pat_disable (char *reason); +extern void map_devmem (unsigned long ,unsigned long ,pgprot_t ); +extern void unmap_devmem (unsigned long ,unsigned long ,pgprot_t ); +#endif
include/asm-x86/pgtable_32.h +6 -0
@@ -31,6 +31,12 @@ static inline void pgtable_cache_init(void) { }static inline void check_pgt_cache (void ) { }void paging_init (void ); +void __init add_one_highpage_init (struct page *,int pfn,int ); +void zap_low_mappings (void ); +void free_initmem (void ); +void do_page_fault (struct pt_regs *regs,unsigned long error_code); + +void set_pmd_pfn (unsigned long ,unsigned long ,pgprot_t );/* * The Linux x86 paging architecture is 'compile-time dual-mode', it
include/asm-x86/setup.h +1 -0
@@ -8,6 +8,7 @@/* Interrupt control for vSMPowered x86_64 systems */ void vsmp_init (void ); +extern int no_broadcast;char *machine_specific_memory_setup (void );extern unsigned long saved_video_mode;
Signature · 8 lines
1.5.5.1 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 18 lines · Jaswinder Singh
CHECK
arch/x86/mm/init_32.carch/x86/mm/init_32.c:290:13: warning: symbol 'add_one_highpage_init' was not declared. Should it be static?arch/x86/mm/init_32.c:437:6: warning: symbol 'zap_low_mappings' was not declared. Should it be static?arch/x86/mm/init_32.c:774:6: warning: symbol 'free_initmem' was not declared. Should it be static?CHECK
arch/x86/mm/fault.carch/x86/mm/fault.c:581:16: warning: symbol 'do_page_fault' was not declared. Should it be static?CHECK
arch/x86/mm/pat.carch/x86/mm/pat.c:566:6: warning: symbol 'map_devmem' was not declared. Should it be static?arch/x86/mm/pat.c:583:6: warning: symbol 'unmap_devmem' was not declared. Should it be static?CHECK
arch/x86/mm/pgtable_32.carch/x86/mm/pgtable_32.c:115:6: warning: symbol 'set_pmd_pfn' was not declared. Should it be static?CHECK
arch/x86/mach-default/setup.carch/x86/mach-default/setup.c:19:5: warning: symbol 'no_broadcast' was not declared. Should it be static?
Quoted 7 lines
Signed-off-by Jaswinder Singh <[email protected]>--- arch/x86/mach-default/setup.c | 2 +- include/asm-x86/pat.h | 3 +++ include/asm-x86/pgtable_32.h | 6 ++++++ include/asm-x86/setup.h | 1 + 4 files changed, 11 insertions(+), 1 deletions(-)
please split this up too into individual commits, against tip/master. Cleanups are generally more manageable if they are finegrained.
Ingo