diff options
author | David Howells <dhowells@redhat.com> | 2012-01-18 05:04:29 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2012-01-19 00:17:35 -0500 |
commit | 456a8167e94b66f406c27400a46a707b870452b0 (patch) | |
tree | 6c6eedf5ff8819dc4c6346db651be9e8758e0df7 /include/linux | |
parent | f6b24579d099ebb67f39cd7924a72a7eec0ce6ae (diff) |
KEYS: Permit key_serial() to be called with a const key pointer
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | 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 bfc014c57351..5253471cd2ea 100644 --- a/include/linux/key.h +++ b/include/linux/key.h | |||
@@ -271,7 +271,7 @@ extern int keyring_add_key(struct key *keyring, | |||
271 | 271 | ||
272 | extern struct key *key_lookup(key_serial_t id); | 272 | extern struct key *key_lookup(key_serial_t id); |
273 | 273 | ||
274 | static inline key_serial_t key_serial(struct key *key) | 274 | static inline key_serial_t key_serial(const struct key *key) |
275 | { | 275 | { |
276 | return key ? key->serial : 0; | 276 | return key ? key->serial : 0; |
277 | } | 277 | } |