diff options
author | David Howells <dhowells@redhat.com> | 2012-01-18 10:04:29 +0000 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2012-01-19 16:17:35 +1100 |
commit | 456a8167e94b66f406c27400a46a707b870452b0 (patch) | |
tree | 6c6eedf5ff8819dc4c6346db651be9e8758e0df7 /include/linux | |
parent | f6b24579d099ebb67f39cd7924a72a7eec0ce6ae (diff) | |
download | lwn-456a8167e94b66f406c27400a46a707b870452b0.tar.gz lwn-456a8167e94b66f406c27400a46a707b870452b0.zip |
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, 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; } |