[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080922231005.2472.65288.stgit@warthog.procyon.org.uk>
Date: Tue, 23 Sep 2008 00:10:05 +0100
From: David Howells <dhowells@...hat.com>
To: akpm@...l.org, jmorris@...ei.org
Cc: dhowells@...hat.com, linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] CRED: Delete alloc_creds() as it's not used
Delete alloc_creds() as it's not used.
Signed-off-by: David Howells <dhowells@...hat.com>
---
kernel/cred-internals.h | 5 -----
kernel/cred.c | 15 ---------------
2 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/kernel/cred-internals.h b/kernel/cred-internals.h
index f16312a..2dc4fc2 100644
--- a/kernel/cred-internals.h
+++ b/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 --git a/kernel/cred.c b/kernel/cred.c
index a68a154..49ed76a 100644
--- a/kernel/cred.c
+++ b/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
*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists