]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - kernel/fork.c
fork: fix some -Wmissing-prototypes warnings
[zynq/linux.git] / kernel / fork.c
index d439c48ecf181c5914cbf467a1754ac355c830f9..a60459947f186ded8a074d49c45634cacb3b8525 100644 (file)
@@ -164,10 +164,6 @@ static inline void free_task_struct(struct task_struct *tsk)
 }
 #endif
 
-void __weak arch_release_thread_stack(unsigned long *stack)
-{
-}
-
 #ifndef CONFIG_ARCH_THREAD_STACK_ALLOCATOR
 
 /*
@@ -422,7 +418,6 @@ static void release_task_stack(struct task_struct *tsk)
                return;  /* Better to leak the stack than to free prematurely */
 
        account_kernel_stack(tsk, -1);
-       arch_release_thread_stack(tsk->stack);
        free_thread_stack(tsk);
        tsk->stack = NULL;
 #ifdef CONFIG_VMAP_STACK