Skip to content

Commit e7fc1e5

Browse files
committed
dm integrity: fix ppc64le warning
Otherwise: In file included from drivers/md/dm-integrity.c:13: drivers/md/dm-integrity.c: In function 'dm_integrity_status': drivers/md/dm-integrity.c:3061:10: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'long int' [-Werror=format=] DMEMIT("%llu %llu", ^~~~~~~~~~~ atomic64_read(&ic->number_of_mismatches), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/device-mapper.h:550:46: note: in definition of macro 'DMEMIT' 0 : scnprintf(result + sz, maxlen - sz, x)) ^ cc1: all warnings being treated as errors Fixes: 7649194 ("dm integrity: remove sector type casts") Signed-off-by: Mike Snitzer <[email protected]>
1 parent 81d5553 commit e7fc1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-integrity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,7 @@ static void dm_integrity_status(struct dm_target *ti, status_type_t type,
30693069
switch (type) {
30703070
case STATUSTYPE_INFO:
30713071
DMEMIT("%llu %llu",
3072-
atomic64_read(&ic->number_of_mismatches),
3072+
(unsigned long long)atomic64_read(&ic->number_of_mismatches),
30733073
ic->provided_data_sectors);
30743074
if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))
30753075
DMEMIT(" %llu", le64_to_cpu(ic->sb->recalc_sector));

0 commit comments

Comments
 (0)