dm verity: Fix compilation warning
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 16 Jul 2020 04:38:12 +0000 (13:38 +0900)
committerMike Snitzer <snitzer@redhat.com>
Tue, 4 Aug 2020 19:48:13 +0000 (15:48 -0400)
commita84c4308333a2cbd54593649a8b144df95c68227
tree5f52c7c44e69a65c3323b29aed04606e224f0aa2
parent8e225f04d2dd6c1ca1eaecd5b04eaa90284df507
dm verity: Fix compilation warning

For the case !CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG, declare the
functions verity_verify_root_hash(), verity_verify_is_sig_opt_arg(),
verity_verify_sig_parse_opt_args() and verity_verify_sig_opts_cleanup()
as inline to avoid a "no previous prototype for xxx" compilation
warning when compiling with W=1.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-verity-verify-sig.h