From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 229343CF049 for ; Mon, 20 Apr 2026 21:20:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776720026; cv=none; b=ucYoPp6b0N7RArGAMJKGA/7fwBSOBLz7iB+knt46RqyrHQqTSCTmGRok3FT8y3JrH0uD8wB1iWg60V+2/8omNA5ICBYdb4wloHR7C1yaoaAlFiIIRZHrZAA5G+9juglJ3ecUrW6BsE8NAJhKCuKk9c5XgVT8PeOReyzFX5KgDRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776720026; c=relaxed/simple; bh=R4RRKP6Jjw+CLrer43S+NrH1h/WG+T88j7VztPPNMaU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MWTGu9+/0IgBpDitUm4CfH+tL6K80/sJZL84DgnvVo5SktlSE37iKktqjFIHzjV82JZhNkCuUzMWNBlfxqeegxp1H9GpaLgQYQ8IihMrLVTo7gxIjVx3iOAxOSHnkqZh5TgQIp9uibbeNtBiT0yiaWA8X7SDUfP4zeOfjGjfAjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=CpYZKkRV; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="CpYZKkRV" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-82f85179263so4252004b3a.3 for ; Mon, 20 Apr 2026 14:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1776720023; x=1777324823; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=U5TkYNL94NKu0U/OFCNswNWigEfxOEAkzVOSoJlSIOI=; b=CpYZKkRVqE2Cv4cBdiDGsizayBsEKxd14kJij1o+0vuhVXcvFEM96cZxrX5lnsnmYf Bh126Z30AZ2W66MoZ9R4B8KRA4JnJT+uW8reF+q4kSRVzm/WguXbVI2hJf614NmpPAfN fG/x528kxuvUr85f6aPN4rt1Khe5NUgvB4Ta/ba7y+tGMk2B4s+2CeVUUsOlehERpKWY 10f7GX200CRPI9T7CZyukS3LlvxE/QbzDQv0Rz7wx4oXIE72Gh/2XvlwF3S3wT/QkrzI MsFFncRLOxwekwHVHNtk5ubJCR/YHzMeCe/hPiuRtfo9NtKq4umLGJ6W7Xm8eS/kwV6d eYhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776720023; x=1777324823; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U5TkYNL94NKu0U/OFCNswNWigEfxOEAkzVOSoJlSIOI=; b=UohU928TgUnwFErSEM8vkrxePHDTN+ewfhsZ5DKysYvY9gEYoyvi5XoDVQ421iFX8r YBgADSwyEu78oUkWU9u05qlGhd7YE/patOTo5zwSFMQiM0JlrfcxyvW8TKWfZIcGkKWM 4tKTp0O4SpY6OTMYOXq536DQ5GeZgbWcdj2ZNRmz1lNlW5Xo5hUh5SpOYRki+nSuToRe LZdRppaKEOEJGwJMD/tFZKR/yx2hrAlO6qcoMEpKZE/LIjXg0jNCQk7brt/b01nOqfXd fMayjR6QzH7avTSIehFj9G61YhWtYNbayoYE8j9TaiEd/9X9U50u2dmBrGlQUEGpaZCA WL4w== X-Forwarded-Encrypted: i=1; AFNElJ9RW1cCJqmMCn3gjCvBHqLMJzLRhqkLnE8jv+aySq/gvCYzT6xcJfoWtDIziikIzo4GdEzNROz8EJYkpCU=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5ANsBFT/9wcQqxg6twxOhNUh4Fr2FQ7IRyEMwcXpt0pXOfXGt gPYnOe/64k/6TgxehhgPbPn3suJZX+wdSmCyONEK8CfUapw8Y9tf/JsCk1MVowkYuDnTk+v/BX0 BAvNHrw== X-Received: from pfve12.prod.google.com ([2002:a05:6a00:1a8c:b0:82f:6a57:a9aa]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:3cc7:b0:82f:5051:f024 with SMTP id d2e1a72fcca58-82f8c8ca07fmr16761487b3a.27.1776720023205; Mon, 20 Apr 2026 14:20:23 -0700 (PDT) Reply-To: Sean Christopherson Date: Mon, 20 Apr 2026 14:19:54 -0700 In-Reply-To: <20260420212004.3938325-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260420212004.3938325-1-seanjc@google.com> X-Mailer: git-send-email 2.54.0.rc1.555.g9c883467ad-goog Message-ID: <20260420212004.3938325-10-seanjc@google.com> Subject: [PATCH v3 09/19] KVM: selftests: Use s16 instead of int16_t From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Tianrui Zhao , Bibo Mao , Huacai Chen , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Sean Christopherson Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, loongarch@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, David Matlack Content-Type: text/plain; charset="UTF-8" From: David Matlack 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 Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/lib/guest_sprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/lib/guest_sprintf.c b/tools/testing/selftests/kvm/lib/guest_sprintf.c index 8d60aa81e27e..2a3ab9c168f0 100644 --- a/tools/testing/selftests/kvm/lib/guest_sprintf.c +++ b/tools/testing/selftests/kvm/lib/guest_sprintf.c @@ -288,7 +288,7 @@ int guest_vsnprintf(char *buf, int n, const char *fmt, va_list args) 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 -- 2.54.0.rc1.555.g9c883467ad-goog