Parm 'tsk' has not been used, remove it to make code clean.
CC: Andrew Morton <[email protected]>
CC: Al Viro <[email protected]>
CC: "Eric W. Biederman" <[email protected]>
CC: Oleg Nesterov <[email protected]>
CC: Srikar Dronamraju <[email protected]>
CC: Ingo Molnar <[email protected]>
CC: Peter Zijlstra <[email protected]>
Signed-off-by: Michael Wang <[email protected]>
---
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/