summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@Atheros.com>2009-09-08 17:31:45 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2009-09-08 17:34:07 +0100
commit7eb0d5e5be4e312d5368896744476cc705b3d7e7 (patch)
treeeebb81e3d4ccb04477b1ace42f666019015f71eb
parent0580a1819c584eb8b98f8701157667037e11153a (diff)
downloadlinux-3.10-7eb0d5e5be4e312d5368896744476cc705b3d7e7.tar.gz
linux-3.10-7eb0d5e5be4e312d5368896744476cc705b3d7e7.tar.bz2
linux-3.10-7eb0d5e5be4e312d5368896744476cc705b3d7e7.zip
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 <penberg@cs.helsinki.fi> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--mm/kmemleak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index ffd162abbe5..39da954b505 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);