Skip to contentSkip to conversation

task_stack.h: remove obsolete __HAVE_ARCH_KSTACK_END check

PATCH New Linus Walleij 1 participant 1 message Apr 3, 2025

lore
Share & tools
lore
#0 lore raw

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.

---
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
index cffad65bdc6a970084cbcfea1913ba53a12dbb4f..85c5a6392e02776e462b2b76e8e1aeb9e1f91af0 100644
@@ -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_END
 static 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]>