Skip to content

Commit

Permalink
kernel/fork.c: unexport get_{mm,task}_exe_file
Browse files Browse the repository at this point in the history
Only used by core code and the tomoyo which can't be a module either.

Link: https://lkml.kernel.org/r/20210820095430.445242-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
  • Loading branch information
Christoph Hellwig authored and Stephen Rothwell committed Aug 25, 2021
1 parent 6b33bde commit 0856014
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0856014

Please sign in to comment.