sched: remove unused __HAVE_THREAD_FUNCTIONS hook support
PATCH 1/1 sched: remove unused __HAVE_THREAD_FUNCTIONS hook support
__HAVE_THREAD_FUNCTIONS could be defined by architectures wishing to provide their own task_thread_info(), task_stack_page(), setup_thread_stack() and end_of_stack() hooks.
Commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture") removed the last upstream consumer of __HAVE_THREAD_FUNCTIONS, so change the remaining !CONFIG_THREAD_INFO_IN_TASK && !__HAVE_THREAD_FUNCTIONS conditionals to only check for the former case.
--- include/linux/sched.h | 2 +- include/linux/sched/task_stack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/sched.h +1 -1
@@ -1874,7 +1874,7 @@ extern unsigned long init_stack[THREAD_SIZE / sizeof(unsigned long)];#ifdef CONFIG_THREAD_INFO_IN_TASK # define task_thread_info (task) (&(task)->thread_info) -#elif !defined(__HAVE_THREAD_FUNCTIONS) +#else # define task_thread_info (task) ((struct thread_info *)(task)->stack)#endif
include/linux/sched/task_stack.h +1 -1
@@ -33,7 +33,7 @@ static __always_inline unsigned long *end_of_stack(const struct task_struct *tas#endif } -#elif !defined(__HAVE_THREAD_FUNCTIONS) +#else #define task_stack_page (task) ((void *)(task)->stack)
Signature · 1 line
2.43.0
[cc'ing Ard as ia64 remover]
Ping - any thoughts on this patch?
Quoted 41 lines · David Disseldorp
__HAVE_THREAD_FUNCTIONScould be defined by architectures wishing to provide their owntask_thread_info(),task_stack_page(),setup_thread_stack()andend_of_stack()hooks.Commit
cf8e8658100d("arch: Remove Itanium (IA-64) architecture") removed the last upstream consumer of__HAVE_THREAD_FUNCTIONS, so change the remaining !CONFIG_THREAD_INFO_IN_TASK && !__HAVE_THREAD_FUNCTIONS conditionals to only check for the former case.Signed-off-by David Disseldorp <[email protected]>--- include/linux/sched.h | 2 +- include/linux/sched/task_stack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)include/linux/sched.h +1
-1@@ -1874,7 +1874,7 @@ extern unsigned long init_stack[THREAD_SIZE / sizeof(unsigned long)];#ifdef CONFIG_THREAD_INFO_IN_TASK # define task_thread_info (task) (&(task)->thread_info) -#elif !defined(__HAVE_THREAD_FUNCTIONS) +#else # define task_thread_info (task) ((struct thread_info *)(task)->stack)#endif include/linux/sched/task_stack.h +1
-1@@ -33,7 +33,7 @@ static __always_inline unsigned long *end_of_stack(const struct task_struct *tas#endif } -#elif !defined(__HAVE_THREAD_FUNCTIONS) +#else #define task_stack_page (task) ((void *)(task)->stack)
Ard Biesheuvel
Reviewed-byQuoted 17 lines · David Disseldorp
[cc'ing Ard as ia64 remover]
Ping - any thoughts on this patch?
Quoted 10 lines · David Disseldorp
__HAVE_THREAD_FUNCTIONScould be defined by architectures wishing to provide their owntask_thread_info(),task_stack_page(),setup_thread_stack()andend_of_stack()hooks.Commit
cf8e8658100d("arch: Remove Itanium (IA-64) architecture") removed the last upstream consumer of__HAVE_THREAD_FUNCTIONS, so change the remaining !CONFIG_THREAD_INFO_IN_TASK && !__HAVE_THREAD_FUNCTIONS conditionals to only check for the former case.Signed-off-by David Disseldorp <[email protected]>
Quoted 32 lines
Quoted 31 lines
--- include/linux/sched.h | 2 +- include/linux/sched/task_stack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)include/linux/sched.h +1
-1@@ -1874,7 +1874,7 @@ extern unsigned long init_stack[THREAD_SIZE / sizeof(unsigned long)];#ifdef CONFIG_THREAD_INFO_IN_TASK # define task_thread_info (task) (&(task)->thread_info) -#elif !defined(__HAVE_THREAD_FUNCTIONS) +#else # define task_thread_info (task) ((struct thread_info *)(task)->stack)#endif include/linux/sched/task_stack.h +1
-1@@ -33,7 +33,7 @@ static __always_inline unsigned long *end_of_stack(const struct task_struct *tas#endif } -#elif !defined(__HAVE_THREAD_FUNCTIONS) +#else #define task_stack_page (task) ((void *)(task)->stack)