mm/thrash.c: make a variable static
PATCH 1/1 mm/thrash.c: make a variable static
The patch below makes a needlessly global variable static.
Signed-off-by Adrian Bunk <[email protected]>
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)
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