Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

task_stack.h: remove obsolete __HAVE_ARCH_KSTACK_END check

Remove __HAVE_ARCH_KSTACK_END as it has been obsolete since removal of
metag architecture in v4.17.

Link: https://lkml.kernel.org/r/20250403-kstack-end-v1-1-7798e71f34d1@linaro.org
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Link: https://lore.kernel.org/20240311164638.2015063-2-pasha.tatashin@soleen.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Pasha Tatashin and committed by
Andrew Morton
db80bd2c 24702162

-2
-2
include/linux/sched/task_stack.h
··· 106 106 #endif 107 107 extern void set_task_stack_end_magic(struct task_struct *tsk); 108 108 109 - #ifndef __HAVE_ARCH_KSTACK_END 110 109 static inline int kstack_end(void *addr) 111 110 { 112 111 /* Reliable end of stack detection: ··· 113 114 */ 114 115 return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*))); 115 116 } 116 - #endif 117 117 118 118 #endif /* _LINUX_SCHED_TASK_STACK_H */