Skip to contentSkip to conversation

arch/x86/mm/pageattr.c: quiet sparse noise; local functions should be static

PATCH New H Hartley Sweeten 1 participant 1 message Sep 9, 2011

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

PATCH 1/1 arch/x86/mm/pageattr.c: quiet sparse noise; local functions should be static

Local functions should be marked static.  This quiets the following sparse noise:

warning: symbol '_set_memory_array' was not declared. Should it be static?

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Matthieu CASTET <[email protected]>
Cc Siarhei Liakh <[email protected]>
Cc Xuxian Jiang <[email protected]>
Cc Andrew Morton <[email protected]>

---

arch/x86/mm/pageattr.c +1 -1
index f9e5267..eda2acb 100644
@@ -998,7 +998,7 @@ out_err:
 }
 EXPORT_SYMBOL(set_memory_uc);
 
-int _set_memory_array(unsigned long *addr, int addrinarray,
+static int _set_memory_array(unsigned long *addr, int addrinarray,
 		unsigned long new_type)
 {
 	int i, j;