The patch titled cred: delete alloc_creds() as it's not used has been added to the -mm tree. Its filename is cred-delete-alloc_creds-as-its-not-used.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: cred: delete alloc_creds() as it's not used From: David Howells <dhowells@xxxxxxxxxx> Delete alloc_creds() as it's not used. Signed-off-by: David Howells <dhowells@xxxxxxxxxx> Cc: James Morris <jmorris@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/cred-internals.h | 5 ----- kernel/cred.c | 15 --------------- 2 files changed, 20 deletions(-) diff -puN kernel/cred-internals.h~cred-delete-alloc_creds-as-its-not-used kernel/cred-internals.h --- a/kernel/cred-internals.h~cred-delete-alloc_creds-as-its-not-used +++ a/kernel/cred-internals.h @@ -10,11 +10,6 @@ */ /* - * cred.c - */ -extern struct cred *alloc_creds(const struct cred *, gfp_t); - -/* * user.c */ static inline void sched_switch_user(struct task_struct *p) diff -puN kernel/cred.c~cred-delete-alloc_creds-as-its-not-used kernel/cred.c --- a/kernel/cred.c~cred-delete-alloc_creds-as-its-not-used +++ a/kernel/cred.c @@ -112,21 +112,6 @@ void __put_cred(struct cred *cred) } EXPORT_SYMBOL(__put_cred); -/* - * Allocate new credentials - */ -struct cred *alloc_creds(const struct cred *old, gfp_t gfp) -{ - struct cred *new; - - new = kmem_cache_alloc(cred_jar, GFP_KERNEL); - if (!new) - return NULL; - if (old) - memcpy(new, old, sizeof(struct cred)); - return new; -} - /** * prepare_creds - Prepare a new set of credentials for modification * _ Patches currently in -mm which might be from dhowells@xxxxxxxxxx are linux-next.patch cifs-fix-range-check.patch fix-cred-wrap-current-cred-and-a-few-other-accessors-on-mips.patch cred-delete-alloc_creds-as-its-not-used.patch uclinux-fix-gzip-header-parsing-in-binfmt_flatc.patch autofs4-add-miscellaneous-device-for-ioctls-fix-fix-3.patch binfmt_elf_fdpic-support-auxvec-base-platform-string.patch binfmt_elf_fdpic-convert-initial-stack-alignment-to-arch_align_stack.patch binfmt_elf_fdpic-wire-up-at_execfd-at_execfn-at_secure.patch sysctl-simplify-strategy.patch mn10300-use-bcd2bin-bin2bcd.patch mutex-subsystem-synchro-test-module.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html