[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250403-kstack-end-v1-1-7798e71f34d1@linaro.org>
Date: Thu, 03 Apr 2025 14:33:03 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org,
Pasha Tatashin <pasha.tatashin@...een.com>,
Linus Walleij <linus.walleij@...aro.org>
Subject: [PATCH] task_stack.h: remove obsolete __HAVE_ARCH_KSTACK_END check
From: Pasha Tatashin <pasha.tatashin@...een.com>
Remove __HAVE_ARCH_KSTACK_END as it has been osolete since removal of
metag architecture in v4.17.
Signed-off-by: Pasha Tatashin <pasha.tatashin@...een.com>
Link: https://lore.kernel.org/20240311164638.2015063-2-pasha.tatashin@soleen.com
Signed-off-by: Linus Walleij <linus.walleij@...aro.org>
---
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(-)
diff --git a/include/linux/sched/task_stack.h b/include/linux/sched/task_stack.h
index cffad65bdc6a970084cbcfea1913ba53a12dbb4f..85c5a6392e02776e462b2b76e8e1aeb9e1f91af0 100644
--- a/include/linux/sched/task_stack.h
+++ b/include/linux/sched/task_stack.h
@@ -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,
--
Linus Walleij <linus.walleij@...aro.org>
Powered by blists - more mailing lists