lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240731104629.2303096-1-yuehaibing@huawei.com>
Date: Wed, 31 Jul 2024 18:46:29 +0800
From: Yue Haibing <yuehaibing@...wei.com>
To: <peterz@...radead.org>, <mingo@...hat.com>, <juri.lelli@...hat.com>,
	<dhaval.giani@...il.com>
CC: <rostedt@...dmis.org>, <linux-kernel@...r.kernel.org>,
	<yuehaibing@...wei.com>
Subject: [PATCH v2 -next] sched: Remove unused extern declarations

From: YueHaibing <yuehaibing@...wei.com>

commit f64f61145a38 ("sched: remove sched_exit()") removed sched_exit(), then
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@...wei.com>
---
v2: fix commit log typo
---
 include/linux/sched/task.h | 1 -
 include/linux/sched/user.h | 2 --
 2 files changed, 3 deletions(-)

diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index 4df2f9055587..de8a7454d479 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -66,7 +66,6 @@ extern int sched_fork(unsigned long clone_flags, struct task_struct *p);
 extern int sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs);
 extern void sched_cancel_fork(struct task_struct *p);
 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;
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ