Skip to content

Commit ab883af

Browse files
AdrianBunktorvalds
authored andcommitted
make marker_debug static
With the needlessly global marker_debug being static gcc can optimize the unused code away. Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 148ff86 commit ab883af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/marker.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern struct marker __start___markers[];
2929
extern struct marker __stop___markers[];
3030

3131
/* Set to 1 to enable marker debug output */
32-
const int marker_debug;
32+
static const int marker_debug;
3333

3434
/*
3535
* markers_mutex nests inside module_mutex. Markers mutex protects the builtin

0 commit comments

Comments
 (0)