Message ID | 20211221170057.2637763-2-guoren@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | sched: Remove unused TASK_SIZE_OF | expand |
On Tue, Dec 21, 2021 at 6:00 PM <guoren@kernel.org> wrote: > > From: Guo Ren <guoren@linux.alibaba.com> > > This macro isn't used in Linux, now. Delete in include/linux/sched.h > and arch's include/asm. This would confuse people who are > implementing the COMPAT feature for architecture. > > Signed-off-by: Guo Ren <guoren@linux.alibaba.com> It would help to list how long it has been unused for. Looking through the git history, I see commit a06db751c321 ("pagemap: check permissions and capabilities at open time") removing the last user. I would normally offer to take the entire series through the asm-generic tree, as I do for this kind of cross-architecture work. I'll probably not have time before the merge window to pick it up though, so it may be better to go through the architecture trees, or possibly linux-mm for anything that fails to get picked up. For the series: Review-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/include/linux/sched.h b/include/linux/sched.h index 78c351e35fec..8e5689d06ac8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2166,10 +2166,6 @@ static inline bool vcpu_is_preempted(int cpu) extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask); extern long sched_getaffinity(pid_t pid, struct cpumask *mask); -#ifndef TASK_SIZE_OF -#define TASK_SIZE_OF(tsk) TASK_SIZE -#endif - #ifdef CONFIG_SMP /* Returns effective CPU energy utilization, as seen by the scheduler */ unsigned long sched_cpu_util(int cpu, unsigned long max);