Skip to contentSkip to conversation

unexport find_task_by_*

PATCH New Adrian Bunk 1 participant 1 message Oct 24, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unexport find_task_by_*

This patch removes the following unused EXPORT_SYMBOL's:
- find_task_by_pid_type_ns
- find_task_by_vpid
- find_task_by_pid_ns

---

 kernel/pid.c |    4 ----
 1 file changed, 4 deletions(-)

65b4847eb3d64c037d8b418d7560b71a3065d304

kernel/pid.c +0 -4
index d1db36b..b09d7c9 100644
@@ -378,8 +378,6 @@ struct task_struct *find_task_by_pid_type_ns(int type, int nr,
 	return pid_task(find_pid_ns(nr, ns), type);
 }
 
-EXPORT_SYMBOL(find_task_by_pid_type_ns);
-
 struct task_struct *find_task_by_pid(pid_t nr)
 {
 	return find_task_by_pid_type_ns(PIDTYPE_PID, nr, &init_pid_ns);
@@ -391,13 +389,11 @@ struct task_struct *find_task_by_vpid(pid_t vnr)
 	return find_task_by_pid_type_ns(PIDTYPE_PID, vnr,
 			current->nsproxy->pid_ns);
 }
-EXPORT_SYMBOL(find_task_by_vpid);
 
 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns)
 {
 	return find_task_by_pid_type_ns(PIDTYPE_PID, nr, ns);
 }
-EXPORT_SYMBOL(find_task_by_pid_ns);
 
 struct pid *get_task_pid(struct task_struct *task, enum pid_type type)
 {