Skip to content

Commit db80bd2

Browse files
soleenakpm00
authored andcommitted
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/[email protected] Signed-off-by: Pasha Tatashin <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 2470216 commit db80bd2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/sched/task_stack.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,12 @@ static inline unsigned long stack_not_used(struct task_struct *p)
106106
#endif
107107
extern void set_task_stack_end_magic(struct task_struct *tsk);
108108

109-
#ifndef __HAVE_ARCH_KSTACK_END
110109
static inline int kstack_end(void *addr)
111110
{
112111
/* Reliable end of stack detection:
113112
* Some APM bios versions misalign the stack
114113
*/
115114
return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*)));
116115
}
117-
#endif
118116

119117
#endif /* _LINUX_SCHED_TASK_STACK_H */

0 commit comments

Comments
 (0)