Skip to content

Commit 7975e75

Browse files
committed
stress-cachehammer: add missing const on pointer cast
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent cb994d2 commit 7975e75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stress-cachehammer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static void OPTIMIZE3 hammer_write64(
339339
if (UNLIKELY(val != pattern)) {
340340
pr_fail("%s: write64: read back of stored value at address "
341341
"%p not %" PRIx64 ", got %" PRIx64 " instead\n",
342-
args->name, (volatile void *)vptr, pattern, val);
342+
args->name, (const volatile void *)vptr, pattern, val);
343343
}
344344
}
345345
}
@@ -528,7 +528,7 @@ static void OPTIMIZE3 hammer_writeread64(
528528
if (UNLIKELY(val != pattern)) {
529529
pr_fail("%s: writeread64: read back of stored value at address "
530530
"%p not %" PRIx64 ", got %" PRIx64 " instead\n",
531-
args->name, (volatile void *)vptr, pattern, val);
531+
args->name, (const volatile void *)vptr, pattern, val);
532532
}
533533
}
534534
}

0 commit comments

Comments
 (0)