* [PATCH] KEYS: Permit key_serial() to be called with a const key pointer
@ 2012-01-18 10:04 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2012-01-18 10:04 UTC (permalink / raw)
To: jmorris; +Cc: keyrings, linux-security-module, linux-kernel, David Howells
Permit key_serial() to be called with a const key pointer.
Signed-off-by: David Howells <dhowells@redhat.com>
---
include/linux/key.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/key.h b/include/linux/key.h
index bfc014c..5253471 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -271,7 +271,7 @@ extern int keyring_add_key(struct key *keyring,
extern struct key *key_lookup(key_serial_t id);
-static inline key_serial_t key_serial(struct key *key)
+static inline key_serial_t key_serial(const struct key *key)
{
return key ? key->serial : 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-18 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-18 10:04 [PATCH] KEYS: Permit key_serial() to be called with a const key pointer David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®