]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
dm crypt: fix get_key_size compiler warning if !CONFIG_KEYS
authorAashish Sharma <shraash@google.com>
Fri, 11 Feb 2022 12:15:38 +0000 (12:15 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:18:56 +0000 (15:18 +0200)
commit76a1227ee3e447264ba5e85254c72c0e8358255f
treed95925aec3d8a6336c12cf7a1bccfaf607279ce4
parent87cfa892ac9269e57212df984b940b93d802129a
dm crypt: fix get_key_size compiler warning if !CONFIG_KEYS

BugLink: https://bugs.launchpad.net/bugs/1971497
[ 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]

Fixes: c538f6ec9f56 ("dm crypt: add ability to use keys from the kernel key retention service")
Signed-off-by: Aashish Sharma <shraash@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/md/dm-crypt.c