Skip to content

Commit 694e280

Browse files
committed
kselftest/arm64: Fix printf() compiler warnings in the arm64 syscall-abi.c tests
Fix the incorrect length modifiers in arm64/abi/syscall-abi.c. Cc: Shuah Khan <[email protected]> Cc: Mark Brown <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 0cc6b94 commit 694e280

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/testing/selftests/arm64/abi/syscall-abi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int check_gpr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, uint64_t s
8181
*/
8282
for (i = 9; i < ARRAY_SIZE(gpr_in); i++) {
8383
if (gpr_in[i] != gpr_out[i]) {
84-
ksft_print_msg("%s SVE VL %d mismatch in GPR %d: %llx != %llx\n",
84+
ksft_print_msg("%s SVE VL %d mismatch in GPR %d: %lx != %lx\n",
8585
cfg->name, sve_vl, i,
8686
gpr_in[i], gpr_out[i]);
8787
errors++;
@@ -112,7 +112,7 @@ static int check_fpr(struct syscall_cfg *cfg, int sve_vl, int sme_vl,
112112
if (!sve_vl && !(svcr & SVCR_SM_MASK)) {
113113
for (i = 0; i < ARRAY_SIZE(fpr_in); i++) {
114114
if (fpr_in[i] != fpr_out[i]) {
115-
ksft_print_msg("%s Q%d/%d mismatch %llx != %llx\n",
115+
ksft_print_msg("%s Q%d/%d mismatch %lx != %lx\n",
116116
cfg->name,
117117
i / 2, i % 2,
118118
fpr_in[i], fpr_out[i]);
@@ -294,13 +294,13 @@ static int check_svcr(struct syscall_cfg *cfg, int sve_vl, int sme_vl,
294294
int errors = 0;
295295

296296
if (svcr_out & SVCR_SM_MASK) {
297-
ksft_print_msg("%s Still in SM, SVCR %llx\n",
297+
ksft_print_msg("%s Still in SM, SVCR %lx\n",
298298
cfg->name, svcr_out);
299299
errors++;
300300
}
301301

302302
if ((svcr_in & SVCR_ZA_MASK) != (svcr_out & SVCR_ZA_MASK)) {
303-
ksft_print_msg("%s PSTATE.ZA changed, SVCR %llx != %llx\n",
303+
ksft_print_msg("%s PSTATE.ZA changed, SVCR %lx != %lx\n",
304304
cfg->name, svcr_in, svcr_out);
305305
errors++;
306306
}

0 commit comments

Comments
 (0)