projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b2457
)
KEYS: Permit key_serial() to be called with a const key pointer
author
David Howells
<dhowells@redhat.com>
Wed, 18 Jan 2012 10:04:29 +0000
(10:04 +0000)
committer
James Morris
<jmorris@namei.org>
Thu, 19 Jan 2012 05:17:35 +0000
(16:17 +1100)
Permit key_serial() to be called with a const key pointer.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/key.h
patch
|
blob
|
history
diff --git
a/include/linux/key.h
b/include/linux/key.h
index
bfc014c
..
5253471
100644
(file)
--- 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;
}