Skip to contentSkip to conversation

KEYS: Permit key_serial() to be called with a const key pointer

PATCH New David Howells 1 participant 1 message Jan 18, 2012 Keys/keyrings

lore
Share & tools
lore

David Howells

author maintainer
#0 lore raw

PATCH 1/1 KEYS: Permit key_serial() to be called with a const key pointer

Permit key_serial() to be called with a const key pointer.

---

 include/linux/key.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/key.h +1 -1
index bfc014c..5253471 100644
@@ -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;
 }