Skip to content

Commit

Permalink
kmemleak: fix sparse warning for static declarations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and Catalin Marinas committed Sep 8, 2009
1 parent 0580a18 commit 7eb0d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 7eb0d5e

Please sign in to comment.