]> git.baikalelectronics.ru Git - kernel.git/commit
mei: bus: suppress sign-compare warnings
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 15 Jul 2018 11:41:18 +0000 (14:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2018 11:29:35 +0000 (13:29 +0200)
commit7778eb0874382f3c69c59e29fad27989fad01a85
treeade9a51ed6959c86f9dd9091a5b877b08f300cea
parent0ab98e0202c237134a48414f6ce48bb9ebf2e429
mei: bus: suppress sign-compare warnings

Comparison between signed and unsigned warnings
and associated type promotion may cause error
condition not be detected.
The type promotion issue in mei bus was addressed by two patches:
commit 81122f04b9e0 ("mei: bus: type promotion bug in mei_nfc_if_version()")
commit 071754daceec ("mei: bus: type promotion bug in mei_fwver()")
Now it is possible to suppress the warning, by adding proper
casting to move out of radar.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus-fixup.c