]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: selftests: Use s16 instead of int16_t
authorDavid Matlack <dmatlack@google.com>
Mon, 20 Apr 2026 21:19:54 +0000 (14:19 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 20 Apr 2026 21:54:17 +0000 (14:54 -0700)
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>
tools/testing/selftests/kvm/lib/guest_sprintf.c

index 8d60aa81e27e849ef64d1dd09cc8edb04e58d872..2a3ab9c168f04695ad1a7749bf40255dba3e4fa3 100644 (file)
@@ -288,7 +288,7 @@ repeat:
                else if (qualifier == 'h') {
                        num = (u16)va_arg(args, int);
                        if (flags & SIGN)
-                               num = (int16_t)num;
+                               num = (s16)num;
                } else if (flags & SIGN)
                        num = va_arg(args, int);
                else