Skip to contentSkip to conversation

x86-rest: fix sparse warnings

PATCH In review Jaswinder Singh 2 participants 2 messages Jul 13, 2008 – Jul 21, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86-rest: fix sparse warnings

CHECK arch/x86/mm/init_32.c
arch/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.c
arch/x86/mm/fault.c:581:16: warning: symbol 'do_page_fault' was not declared. Should it be static?

CHECK arch/x86/mm/pat.c
arch/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.c
arch/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.c
arch/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
index 0c28a07..dac2bd9 100644
@@ -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
index 88f60cc..e17830e 100644
@@ -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
index 32ca031..2f3322c 100644
@@ -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
index b9b6494..1997ee6 100644
@@ -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
#1 lore raw
Quoted 18 lines · Jaswinder Singh

CHECK arch/x86/mm/init_32.c
arch/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.c
arch/x86/mm/fault.c:581:16: warning: symbol 'do_page_fault' was not declared. Should it be static?

CHECK arch/x86/mm/pat.c
arch/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.c
arch/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.c
arch/x86/mach-default/setup.c:19:5: warning: symbol 'no_broadcast' was not declared. Should it be static?

Quoted 7 lines
---
 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