Skip to content

Commit

Permalink
KEYS: Permit key_serial() to be called with a const key pointer
Browse files Browse the repository at this point in the history
Permit key_serial() to be called with a const key pointer.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
dhowells authored and James Morris committed Jan 19, 2012
1 parent f6b2457 commit 456a816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 456a816

Please sign in to comment.