Skip to contentSkip to conversation

mm: ksm: Remove unused function process_timeout()

PATCH In review Murilo Opsfelder Araujo 2 participants 2 messages Aug 11, 2014 – Sep 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: ksm: Remove unused function process_timeout()

This patch fixes compilation warning:

mm/ksm.c:1711:13: warning: a??process_timeouta?? defined but not used [-Wunused-function]

---
 mm/ksm.c | 5 -----
 1 file changed, 5 deletions(-)
mm/ksm.c +0 -5
index f7de4c0..434a50a 100644
@@ -1708,11 +1708,6 @@ static void ksm_do_scan(unsigned int scan_npages)
 	}
 }
 
-static void process_timeout(unsigned long __data)
-{
-	wake_up_process((struct task_struct *)__data);
-}
-
 static int ksmd_should_run(void)
 {
 	return (ksm_run & KSM_RUN_MERGE) && !list_empty(&ksm_mm_head.mm_list);
Signature · 7 lines
2.1.0.rc1.204.gae8bc8d

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#1 lore raw
Quoted 15 lines · Murilo Opsfelder Araujo

This patch fixes compilation warning:

mm/ksm.c:1711:13: warning: a??process_timeouta?? defined but not used [-Wunused-function]

---
  mm/ksm.c | 5 -----
  1 file changed, 5 deletions(-)
mm/ksm.c +0 -0
index f7de4c0..434a50a 100644
@@ -1708,11 +1708,6 @@ static void ksm_do_scan(unsigned int scan_npages)
  	}

mm/ksm.c static void ksm_do_scan(unsigned int scan_npages) · line 1713

Quoted 10 lines
mm/ksm.c +0 -5
  }
 
-static void process_timeout(unsigned long __data)
-{
-	wake_up_process((struct task_struct *)__data);
-}
-
  static int ksmd_should_run(void)
  {
  	return (ksm_run&  KSM_RUN_MERGE)&&  !list_empty(&ksm_mm_head.mm_list);

The original KSM patch which introduced this function (by mistake) has been re-sent for reviews. So, we can drop this at the moment.

Signature · 10 lines
Chintan Pandya

QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member of the Code Aurora Forum, hosted by The Linux Foundation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>