Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

KVM: selftests: Use s16 instead of int16_t

Use s16 instead of int16_t to make the KVM selftests code more concise
and more similar to the kernel (since selftests are primarily developed
by kernel developers).

This commit was generated with the following command:

git ls-files tools/testing/selftests/kvm | xargs sed -i 's/int16_t/s16/g'

Then by manually adjusting whitespace to make checkpatch.pl happy.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://patch.msgid.link/20260420212004.3938325-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>

authored by

David Matlack and committed by
Sean Christopherson
2540ebd6 19d09149

+1 -1
+1 -1
tools/testing/selftests/kvm/lib/guest_sprintf.c
··· 288 288 else if (qualifier == 'h') { 289 289 num = (u16)va_arg(args, int); 290 290 if (flags & SIGN) 291 - num = (int16_t)num; 291 + num = (s16)num; 292 292 } else if (flags & SIGN) 293 293 num = va_arg(args, int); 294 294 else