From: Luis R. Rodriguez Date: Tue, 8 Sep 2009 16:31:45 +0000 (+0100) Subject: kmemleak: fix sparse warning for static declarations X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7eb0d5e5be4e312d5368896744476cc705b3d7e7;p=deliverable%2Flinux.git kmemleak: fix sparse warning for static declarations This fixes these sparse warnings: mm/kmemleak.c:1179:6: warning: symbol 'start_scan_thread' was not declared. Should it be static? mm/kmemleak.c:1194:6: warning: symbol 'stop_scan_thread' was not declared. Should it be static? Acked-by: Pekka Enberg Signed-off-by: Luis R. Rodriguez Signed-off-by: Catalin Marinas --- diff --git a/mm/kmemleak.c b/mm/kmemleak.c index ffd162abbe5e..39da954b5059 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -1287,7 +1287,7 @@ static int kmemleak_scan_thread(void *arg) * Start the automatic memory scanning thread. This function must be called * with the scan_mutex held. */ -void start_scan_thread(void) +static void start_scan_thread(void) { if (scan_thread) return; @@ -1302,7 +1302,7 @@ void start_scan_thread(void) * Stop the automatic memory scanning thread. This function must be called * with the scan_mutex held. */ -void stop_scan_thread(void) +static void stop_scan_thread(void) { if (scan_thread) { kthread_stop(scan_thread);