diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2015-11-05 21:45:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-05 22:34:48 -0500 |
commit | 2cee611af8638d80d3abb71f878829a7e998bb44 (patch) | |
tree | 057e4b0c9af546147e42f8d6a57c01279ce94f09 /tools/vm | |
parent | a8ea0bf1286a3a96466139a828f3d161d19ca015 (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.c | 54 |
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 | ||
56 | int slabs = 0; | 56 | int slabs; |
57 | int actual_slabs = 0; | 57 | int actual_slabs; |
58 | int aliases = 0; | 58 | int aliases; |
59 | int alias_targets = 0; | 59 | int alias_targets; |
60 | int highest_node = 0; | 60 | int highest_node; |
61 | 61 | ||
62 | char buffer[4096]; | 62 | char buffer[4096]; |
63 | 63 | ||
64 | int show_empty = 0; | 64 | int show_empty; |
65 | int show_report = 0; | 65 | int show_report; |
66 | int show_alias = 0; | 66 | int show_alias; |
67 | int show_slab = 0; | 67 | int show_slab; |
68 | int skip_zero = 1; | 68 | int skip_zero = 1; |
69 | int show_numa = 0; | 69 | int show_numa; |
70 | int show_track = 0; | 70 | int show_track; |
71 | int show_first_alias = 0; | 71 | int show_first_alias; |
72 | int validate = 0; | 72 | int validate; |
73 | int shrink = 0; | 73 | int shrink; |
74 | int show_inverted = 0; | 74 | int show_inverted; |
75 | int show_single_ref = 0; | 75 | int show_single_ref; |
76 | int show_totals = 0; | 76 | int show_totals; |
77 | int sort_size = 0; | 77 | int sort_size; |
78 | int sort_active = 0; | 78 | int sort_active; |
79 | int set_debug = 0; | 79 | int set_debug; |
80 | int show_ops = 0; | 80 | int show_ops; |
81 | int show_activity = 0; | 81 | int show_activity; |
82 | int output_lines = -1; | 82 | int output_lines = -1; |
83 | int sort_loss; | 83 | int sort_loss; |
84 | int extended_totals; | 84 | int extended_totals; |
85 | int show_bytes; | 85 | int show_bytes; |
86 | 86 | ||
87 | /* Debug options */ | 87 | /* Debug options */ |
88 | int sanity = 0; | 88 | int sanity; |
89 | int redzone = 0; | 89 | int redzone; |
90 | int poison = 0; | 90 | int poison; |
91 | int tracking = 0; | 91 | int tracking; |
92 | int tracing = 0; | 92 | int tracing; |
93 | 93 | ||
94 | int page_size; | 94 | int page_size; |
95 | 95 | ||