Skip to contentSkip to conversation

mm/thrash.c: make a variable static

PATCH In review Adrian Bunk 2 participants 2 messages Dec 12, 2004 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/thrash.c: make a variable static

The patch below makes a needlessly global variable static.

mm/thrash.c renamed from mm/thrash.c.old +1 -1
@@ -15,7 +15,7 @@
 
 static DEFINE_SPINLOCK(swap_token_lock);
 static unsigned long swap_token_timeout;
-unsigned long swap_token_check;
+static unsigned long swap_token_check;
 struct mm_struct * swap_token_mm = &init_mm;
 
 #define SWAP_TOKEN_CHECK_INTERVAL (HZ * 2)
#1 lore raw

mm/thrash.c line 18

Quoted 5 lines · Adrian Bunk
mm/thrash.c renamed from mm/thrash.c.old +1 -1
 
-unsigned long swap_token_check;
+static unsigned long swap_token_check;

Looks good to me.

Signature · 3 lines
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan