Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

exec: make prepare_bprm_creds static

prepare_bprm_creds is not used outside exec.c, so there's no reason for it
to have external linkage.

Signed-off-by: Chanho Min <chanho.min@lge.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by

Chanho Min and committed by
Al Viro
4addd264 22cb7405

+1 -2
+1 -1
fs/exec.c
··· 1399 1399 * Or, if exec fails before, free_bprm() should release ->cred and 1400 1400 * and unlock. 1401 1401 */ 1402 - int prepare_bprm_creds(struct linux_binprm *bprm) 1402 + static int prepare_bprm_creds(struct linux_binprm *bprm) 1403 1403 { 1404 1404 if (mutex_lock_interruptible(&current->signal->cred_guard_mutex)) 1405 1405 return -ERESTARTNOINTR;
-1
include/linux/binfmts.h
··· 138 138 extern int bprm_change_interp(const char *interp, struct linux_binprm *bprm); 139 139 extern int copy_strings_kernel(int argc, const char *const *argv, 140 140 struct linux_binprm *bprm); 141 - extern int prepare_bprm_creds(struct linux_binprm *bprm); 142 141 extern void install_exec_creds(struct linux_binprm *bprm); 143 142 extern void set_binfmt(struct linux_binfmt *new); 144 143 extern ssize_t read_code(struct file *, unsigned long, loff_t, size_t);