lkml.org 
[lkml]   [2008]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] 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>

---
91577cc8ac60bf9003d0dd037a231db363003740 diff --git a/kernel/marker.c b/kernel/marker.c
index c4c2cd8..133bdbb 100644
--- a/kernel/marker.c
+++ b/kernel/marker.c
@@ -28,7 +28,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


\
 
 \ /
  Last update: 2008-02-14 22:27    [W:2.127 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site