]> git.baikalelectronics.ru Git - kernel.git/commit
Fix build break in fork.c when THREAD_SIZE < PAGE_SIZE
authorMichael Ellerman <mpe@ellerman.id.au>
Sat, 25 Jun 2016 11:53:30 +0000 (21:53 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Jun 2016 13:01:28 +0000 (06:01 -0700)
commit35f11d82cdb46f5eefcd427dc1af9dcb4a302738
treea910d903725c0bef5b310947e0122b6b30133e27
parentac9adde2eeaac30ff7c192ee512bd4577ab177df
Fix build break in fork.c when THREAD_SIZE < PAGE_SIZE

Commit dd0241b77a84 ("Clarify naming of thread info/stack allocators")
breaks the build on some powerpc configs, where THREAD_SIZE < PAGE_SIZE:

  kernel/fork.c:235:2: error: implicit declaration of function 'free_thread_stack'
  kernel/fork.c:355:8: error: assignment from incompatible pointer type
    stack = alloc_thread_stack_node(tsk, node);
    ^

Fix it by renaming free_stack() to free_thread_stack(), and updating the
return type of alloc_thread_stack_node().

Fixes: dd0241b77a84 ("Clarify naming of thread info/stack allocators")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c