Skip to content

Commit

Permalink
make marker_debug static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Apr 30, 2008
1 parent 148ff86 commit ab883af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/marker.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern struct marker __start___markers[];
extern struct marker __stop___markers[];

/* Set to 1 to enable marker debug output */
const int marker_debug;
static const int marker_debug;

/*
* markers_mutex nests inside module_mutex. Markers mutex protects the builtin
Expand Down

0 comments on commit ab883af

Please sign in to comment.