Skip to contentSkip to conversation

x86/mm/discontig_32.c: make code static

PATCH Applied Adrian Bunk 2 participants 2 messages Oct 24, 2007 – Oct 25, 2007

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

PATCH 1/1 x86/mm/discontig_32.c: make code static

node0_bdata and paddr_to_nid() can become static.

---

 arch/x86/mm/discontig_32.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

3380c9e430ab49db51bea06835e4b058f573d7b5

arch/x86/mm/discontig_32.c +2 -2
index fe608a4..13a474d 100644
@@ -40,7 +40,7 @@
 
 struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
 EXPORT_SYMBOL(node_data);
-bootmem_data_t node0_bdata;
+static bootmem_data_t node0_bdata;
 
 /*
  * numa interface - we expect the numa architecture specific code to have
@@ -404,7 +404,7 @@ void __init set_highmem_pages_init(int bad_ppro)
 }
 
 #ifdef CONFIG_MEMORY_HOTPLUG
-int paddr_to_nid(u64 addr)
+static int paddr_to_nid(u64 addr)
 {
 	int nid;
 	unsigned long pfn = PFN_DOWN(addr);
#1 lore raw
Quoted 3 lines · Adrian Bunk

node0_bdata and paddr_to_nid() can become static.

Thanks, applied.

tglx

Quoted 29 lines

---

 arch/x86/mm/discontig_32.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

3380c9e430ab49db51bea06835e4b058f573d7b5

arch/x86/mm/discontig_32.c +2 -2
index fe608a4..13a474d 100644
@@ -40,7 +40,7 @@
 
 struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
 EXPORT_SYMBOL(node_data);
-bootmem_data_t node0_bdata;
+static bootmem_data_t node0_bdata;
 
 /*
  * numa interface - we expect the numa architecture specific code to have
@@ -404,7 +404,7 @@ void __init set_highmem_pages_init(int bad_ppro)
 }
 
 #ifdef CONFIG_MEMORY_HOTPLUG
-int paddr_to_nid(u64 addr)
+static int paddr_to_nid(u64 addr)
 {
 	int nid;
 	unsigned long pfn = PFN_DOWN(addr);