Skip to contentSkip to conversation

kernel: unexport get_{mm,task}_exe_file

PATCH Applied Christoph Hellwig 1 participant 1 message Aug 20, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: unexport get_{mm,task}_exe_file

Only used by core code and the tomoyo which can't be a module either.

---
 kernel/fork.c | 2 --
 1 file changed, 2 deletions(-)
kernel/fork.c +0 -2
index af408d06e1fb7..dc8eb1300418a 100644
@@ -1238,7 +1238,6 @@ struct file *get_mm_exe_file(struct mm_struct *mm)
 	rcu_read_unlock();
 	return exe_file;
 }
-EXPORT_SYMBOL(get_mm_exe_file);
 
 /**
  * get_task_exe_file - acquire a reference to the task's executable file
@@ -1261,7 +1260,6 @@ struct file *get_task_exe_file(struct task_struct *task)
 	task_unlock(task);
 	return exe_file;
 }
-EXPORT_SYMBOL(get_task_exe_file);
 
 /**
  * get_task_mm - acquire a reference to the task's mm
Signature · 1 line
2.30.2