From: David Howells Date: Tue, 24 Sep 2013 09:35:14 +0000 (+0100) Subject: KEYS: key_is_dead() should take a const key pointer argument X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e55ca6dcd07b45619035df343c9614a3ab35034;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git KEYS: key_is_dead() should take a const key pointer argument key_is_dead() should take a const key pointer argument as it doesn't modify what it points to. Signed-off-by: David Howells --- diff --git a/security/keys/internal.h b/security/keys/internal.h index df971feceaf2..490aef5ba34b 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -203,7 +203,7 @@ extern struct key *key_get_instantiation_authkey(key_serial_t target_id); /* * Determine whether a key is dead. */ -static inline bool key_is_dead(struct key *key, time_t limit) +static inline bool key_is_dead(const struct key *key, time_t limit) { return key->flags & ((1 << KEY_FLAG_DEAD) |