fork: clean up ifdef logic around stack allocation
authorPasha Tatashin <pasha.tatashin@soleen.com>
Wed, 18 Jun 2025 13:34:33 +0000 (15:34 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:57:54 +0000 (22:57 -0700)
commit64960497ea86a5d09176c296c3616aa7c8668624
tree6f95ce37cf918f4323e16a6a2826ec64dfe79540
parent816a8800326833becc93f607eb706fc542c28d75
fork: clean up ifdef logic around stack allocation

There is an unneeded OR in the ifdef functions that are used to allocate
and free kernel stacks based on direct map or vmap.  Adding dynamic stack
support would complicate this logic even further.

Therefore, clean up by changing the order so OR is no longer needed.

Link: https://lkml.kernel.org/r/20250618-fork-fixes-v4-1-2e05a2e1f5fc@linaro.org
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Link: https://lore.kernel.org/20240311164638.2015063-3-pasha.tatashin@soleen.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Mateusz Guzik <mjguzik@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/fork.c