aboutsummaryrefslogtreecommitdiffstats
path: root/tools/vm
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2015-11-05 21:45:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 22:34:48 -0500
commit2cee611af8638d80d3abb71f878829a7e998bb44 (patch)
tree057e4b0c9af546147e42f8d6a57c01279ce94f09 /tools/vm
parenta8ea0bf1286a3a96466139a828f3d161d19ca015 (diff)
tools/vm/slabinfo: cosmetic globals cleanup
checkpatch.pl complains about globals being explicitly zeroed out: "ERROR: do not initialise globals to 0 or NULL". New globals, introduced in this patch set, have no explicit 0 initialization; clean up the old ones to make it less hairy. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/vm')
-rw-r--r--tools/vm/slabinfo.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c
index 60beb91419d4..86e698d07e20 100644
--- a/tools/vm/slabinfo.c
+++ b/tools/vm/slabinfo.c
@@ -53,43 +53,43 @@ struct aliasinfo {
53 struct slabinfo *slab; 53 struct slabinfo *slab;
54} aliasinfo[MAX_ALIASES]; 54} aliasinfo[MAX_ALIASES];
55 55
56int slabs = 0; 56int slabs;
57int actual_slabs = 0; 57int actual_slabs;
58int aliases = 0; 58int aliases;
59int alias_targets = 0; 59int alias_targets;
60int highest_node = 0; 60int highest_node;
61 61
62char buffer[4096]; 62char buffer[4096];
63 63
64int show_empty = 0; 64int show_empty;
65int show_report = 0; 65int show_report;
66int show_alias = 0; 66int show_alias;
67int show_slab = 0; 67int show_slab;
68int skip_zero = 1; 68int skip_zero = 1;
69int show_numa = 0; 69int show_numa;
70int show_track = 0; 70int show_track;
71int show_first_alias = 0; 71int show_first_alias;
72int validate = 0; 72int validate;
73int shrink = 0; 73int shrink;
74int show_inverted = 0; 74int show_inverted;
75int show_single_ref = 0; 75int show_single_ref;
76int show_totals = 0; 76int show_totals;
77int sort_size = 0; 77int sort_size;
78int sort_active = 0; 78int sort_active;
79int set_debug = 0; 79int set_debug;
80int show_ops = 0; 80int show_ops;
81int show_activity = 0; 81int show_activity;
82int output_lines = -1; 82int output_lines = -1;
83int sort_loss; 83int sort_loss;
84int extended_totals; 84int extended_totals;
85int show_bytes; 85int show_bytes;
86 86
87/* Debug options */ 87/* Debug options */
88int sanity = 0; 88int sanity;
89int redzone = 0; 89int redzone;
90int poison = 0; 90int poison;
91int tracking = 0; 91int tracking;
92int tracing = 0; 92int tracing;
93 93
94int page_size; 94int page_size;
95 95