Skip to content

Commit bce79b0

Browse files
Dawei Lictmarinas
authored andcommitted
arm64: remove unneeded BUILD_BUG_ON assertion
Since commit c02433d ("arm64: split thread_info from task stack"), CONFIG_THREAD_INFO_IN_TASK is enabled unconditionally for arm64. So remove this always-true assertion from arch_dup_task_struct. Signed-off-by: Dawei Li <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 2537512 commit bce79b0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/arm64/kernel/process.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,6 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
290290
fpsimd_preserve_current_state();
291291
*dst = *src;
292292

293-
/* We rely on the above assignment to initialize dst's thread_flags: */
294-
BUILD_BUG_ON(!IS_ENABLED(CONFIG_THREAD_INFO_IN_TASK));
295-
296293
/*
297294
* Detach src's sve_state (if any) from dst so that it does not
298295
* get erroneously used or freed prematurely. dst's copies

0 commit comments

Comments
 (0)