Message ID | 20240311164638.2015063-2-pasha.tatashin@soleen.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Dynamic Kernel Stacks | expand |
Le 11/03/2024 à 17:46, Pasha Tatashin a écrit : > Remove __HAVE_ARCH_KSTACK_END as it has been osolete since removal of > metag architecture in v4.17. Nit: obsolete > > Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com> > --- > 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 ccd72b978e1f..860faea06883 100644 > --- a/include/linux/sched/task_stack.h > +++ b/include/linux/sched/task_stack.h > @@ -116,7 +116,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: > @@ -124,6 +123,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 */
On Sun, Mar 17, 2024 at 10:36 AM Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote: > > Le 11/03/2024 à 17:46, Pasha Tatashin a écrit : > > Remove __HAVE_ARCH_KSTACK_END as it has been osolete since removal of > > metag architecture in v4.17. > > Nit: obsolete Thank you, I will fix it. Pasha > > > > > Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com> > > --- > > 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 ccd72b978e1f..860faea06883 100644 > > --- a/include/linux/sched/task_stack.h > > +++ b/include/linux/sched/task_stack.h > > @@ -116,7 +116,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: > > @@ -124,6 +123,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 */ >
diff --git a/include/linux/sched/task_stack.h b/include/linux/sched/task_stack.h index ccd72b978e1f..860faea06883 100644 --- a/include/linux/sched/task_stack.h +++ b/include/linux/sched/task_stack.h @@ -116,7 +116,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: @@ -124,6 +123,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 */
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@soleen.com> --- include/linux/sched/task_stack.h | 2 -- 1 file changed, 2 deletions(-)