task_stack.h: remove obsolete __HAVE_ARCH_KSTACK_END check
PATCH 1/1 task_stack.h: remove obsolete __HAVE_ARCH_KSTACK_END check
From: Pasha Tatashin <[email protected]>
Remove __HAVE_ARCH_KSTACK_END as it has been osolete since removal of metag architecture in v4.17.
Signed-off-by Pasha Tatashin <[email protected]>
Signed-off-by Linus Walleij <[email protected]>
---
Resending Pashas cleanup patch as it fell off the planet a year ago because it was part of a patch series that did not go anywhere at the time.
Andrew maybe you can pick this one up?
--- include/linux/sched/task_stack.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/sched/task_stack.h +0 -2
@@ -106,7 +106,6 @@ static inline unsigned long stack_not_used(struct task_struct *p)#endif extern void set_task_stack_end_magic (struct task_struct *tsk); -#ifndef __HAVE_ARCH_KSTACK_ENDstatic inline int kstack_end (void *addr) {/* Reliable end of stack detection:
@@ -114,6 +113,5 @@ static inline int kstack_end(void *addr)*/ return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*))); } -#endif #endif /* _LINUX_SCHED_TASK_STACK_H */
---
base-commit: 38fec10eb60d687e30c8c6b5420d86e8149f7557
change-id: 20250403-kstack-end-9813410f860d
Best regards,
Signature · 1 line
Linus Walleij <[email protected]>