Patch "dm crypt: fix get_key_size compiler warning if !CONFIG_KEYS" has been added to the 4.19-stable tree
Sasha Levin
AppliedThis is a note to let you know that I've just added the patch titled
dm crypt: fix get_key_size compiler warning if !CONFIG_KEYS
to the 4.19-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
dm-crypt-fix-get_key_size-compiler-warning-if-config.patch
and it can be found in the queue-4.19 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
commit 02da2fd27b2f8777698b06c781dd9aa7c3442730
Author: Aashish Sharma <[email protected]> Date: Fri Feb 11 12:15:38 2022 +0000
dm crypt: fix get_key_size compiler warning if !CONFIG_KEYS
[ Upstream commit 6fc51504388c1a1a53db8faafe9fff78fccc7c87 ]
Explicitly convert unsigned int in the right of the conditional expression to int to match the left side operand and the return type, fixing the following compiler warning:
drivers/md/dm-crypt.c:2593:43: warning: signed and unsigned type in conditional expression [-Wsign-compare]
drivers/md/dm-crypt.c +1 -1
@@ -2107,7 +2107,7 @@ static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_stringstatic int get_key_size (char **key_string) { -return (*key_string[0 ] ==':' ) ? -EINVAL :strlen (*key_string) >>1 ; +return (*key_string[0 ] ==':' ) ? -EINVAL : (int )(strlen (*key_string) >>1 ); }#endif
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel