From: Christoph Hellwig <hch@lst.de>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] kernel: unexport get_{mm,task}_exe_file
Date: Fri, 20 Aug 2021 11:54:30 +0200 [thread overview]
Message-ID: <20210820095430.445242-1-hch@lst.de> (raw)
Only used by core code and the tomoyo which can't be a module either.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
kernel/fork.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/fork.c b/kernel/fork.c
index af408d06e1fb7..dc8eb1300418a 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -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
--
2.30.2
reply other threads:[~2021-08-20 9:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210820095430.445242-1-hch@lst.de \
--to=hch@lst.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).