[PATCH 02/11] sched/cleanup: remove the extra parm of alloc_thread_info_node()

From: Michael wang
Date: Thu Aug 22 2013 - 03:51:13 EST


Parm 'tsk' has not been used, remove it to make code clean.

CC: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
CC: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
CC: Oleg Nesterov <oleg@xxxxxxxxxx>
CC: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Signed-off-by: Michael Wang <wangyun@xxxxxxxxxxxxxxxxxx>
---
kernel/fork.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/kernel/fork.c b/kernel/fork.c
index e23bb19..457945f 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -144,8 +144,7 @@ void __weak arch_release_thread_info(struct thread_info *ti)
* kmemcache based allocator.
*/
# if THREAD_SIZE >= PAGE_SIZE
-static struct thread_info *alloc_thread_info_node(struct task_struct *tsk,
- int node)
+static struct thread_info *alloc_thread_info_node(int node)
{
struct page *page = alloc_pages_node(node, THREADINFO_GFP_ACCOUNTED,
THREAD_SIZE_ORDER);
@@ -160,8 +159,7 @@ static inline void free_thread_info(struct thread_info *ti)
# else
static struct kmem_cache *thread_info_cache;

-static struct thread_info *alloc_thread_info_node(struct task_struct *tsk,
- int node)
+static struct thread_info *alloc_thread_info_node(int node)
{
return kmem_cache_alloc_node(thread_info_cache, THREADINFO_GFP, node);
}
@@ -302,7 +300,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
if (!tsk)
return NULL;

- ti = alloc_thread_info_node(tsk, node);
+ ti = alloc_thread_info_node(node);
if (!ti)
goto free_tsk;

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/