hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/sched/task_stack.h
....@@ -23,7 +23,7 @@
2323
2424 #define setup_thread_stack(new,old) do { } while(0)
2525
26
-static inline unsigned long *end_of_stack(const struct task_struct *task)
26
+static __always_inline unsigned long *end_of_stack(const struct task_struct *task)
2727 {
2828 #ifdef CONFIG_STACK_GROWSUP
2929 return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1;
....@@ -65,7 +65,7 @@
6565 #ifdef CONFIG_THREAD_INFO_IN_TASK
6666 static inline void *try_get_task_stack(struct task_struct *tsk)
6767 {
68
- return atomic_inc_not_zero(&tsk->stack_refcount) ?
68
+ return refcount_inc_not_zero(&tsk->stack_refcount) ?
6969 task_stack_page(tsk) : NULL;
7070 }
7171