[-next] sched: Remove unsued extern declarations

Message ID 20230721120705.32372-1-yuehaibing@huawei.com
State New
Headers
Series [-next] sched: Remove unsued extern declarations |

Commit Message

Yue Haibing July 21, 2023, 12:07 p.m. UTC
  commit f64f61145a38 ("sched: remove sched_exit()") removed sched_exit(),
commit ad46c2c4ebce ("sched: clean up fastcall uses of sched_fork()/sched_exit()")
mistakenly change sched_exit() to sched_dead() extern declarations.

And since commit 7c9414385ebf ("sched: Remove USER_SCHED")
uids_sysfs_init() is not used anymore.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 include/linux/sched/task.h | 1 -
 include/linux/sched/user.h | 2 --
 2 files changed, 3 deletions(-)
  

Patch

diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index a23af225c898..d4ec49d36ca4 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -63,7 +63,6 @@  extern void init_idle(struct task_struct *idle, int cpu);
 extern int sched_fork(unsigned long clone_flags, struct task_struct *p);
 extern void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs);
 extern void sched_post_fork(struct task_struct *p);
-extern void sched_dead(struct task_struct *p);
 
 void __noreturn do_task_dead(void);
 void __noreturn make_task_dead(int signr);
diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h
index 4cc52698e214..ffa639dd3821 100644
--- a/include/linux/sched/user.h
+++ b/include/linux/sched/user.h
@@ -36,8 +36,6 @@  struct user_struct {
 	struct ratelimit_state ratelimit;
 };
 
-extern int uids_sysfs_init(void);
-
 extern struct user_struct *find_user(kuid_t);
 
 extern struct user_struct root_user;