Skip to content

Commit d4b1aaf

Browse files
weiyongjun (A)snitm
authored andcommitted
dm verity: make verity_for_io_block static
Fixes the following sparse warning: drivers/md/dm-verity-target.c:375:6: warning: symbol 'verity_for_io_block' was not declared. Should it be static? Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 843f38d commit d4b1aaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/md/dm-verity-target.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ int verity_hash_for_block(struct dm_verity *v, struct dm_verity_io *io,
348348
/*
349349
* Calculates the digest for the given bio
350350
*/
351-
int verity_for_io_block(struct dm_verity *v, struct dm_verity_io *io,
352-
struct bvec_iter *iter, struct crypto_wait *wait)
351+
static int verity_for_io_block(struct dm_verity *v, struct dm_verity_io *io,
352+
struct bvec_iter *iter, struct crypto_wait *wait)
353353
{
354354
unsigned int todo = 1 << v->data_dev_block_bits;
355355
struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size);

0 commit comments

Comments
 (0)