From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 9B3F2387598 for ; Mon, 20 Apr 2026 20:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776717810; cv=none; b=HfsGHloB+8SfDA7ZQ7+pGusuMVIs5+Vy75Zip/fYqp1jtD6RFZwVtuEEzKxngRnZabTgYL1KhwsrN86kkiW9K00HIT9m4c00cKUPkQzNrIZSPzHI+uYYnjYUNPflRgYc+F5BYEn27jTGHIcJLftjrfbGx35Qj2GQ4wlhZKwZqUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776717810; c=relaxed/simple; bh=2TQCEiF5Y/KXRZuugVpD0ZOKr6LVSShqt3Fx7ra9V9g=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=rSoZ5OsYzekM2qtFmV45j9+1OXMMbBHs1139tbEeHhuNzqpRuw7tHXtMfqPKeRhVjXfs4LUFr4eOkeKEEXXDopaSMnskeRh27VMtrs+AHkeSf4OrkNRsQkP9kaSNuj8Ub8szMRi9k/vkBUs4EFZnT+eT8ufHmEuLf+po76NBEds= 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=pIOkCj5Y; arc=none smtp.client-ip=209.85.214.201 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="pIOkCj5Y" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2adef9d486bso31665905ad.2 for ; Mon, 20 Apr 2026 13:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1776717808; x=1777322608; darn=lists.linux.dev; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Bw/xOa4cMDz+3Y150IRREEsvI8FeQ6LscRd2k8rTaIk=; b=pIOkCj5Yz8A9GXJPNeKwt3xBrPzHW8SHB0ChcMqAjASlV2Mc6JRHdN3U2115p33LWj ZWRA7dZ88ZW66qgZKxGjWkfwC4xCDZB7jV6GMxI5zcEFIFgY/2fGiDqtuiBygXUmj0rF AGIACgr+6oIcRgwIAnfkAB0hpNPwZsOwZK/jlKCEWczt+gyktDCrlq3l/h0gQgp3LQgl t26NJQm9+s6OWgTQ5OylPDFIWl0s/a9ZN7IxCgAsrDluURF4nSb8FAXy3TAJ2OpqbL+G JxxCveIbSV6ChMb1jh9U0S5itNvFeCRZApf8yL/tGy8pEwjtrPvwxcO0ln2TnWvoa8jp cipQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776717808; x=1777322608; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Bw/xOa4cMDz+3Y150IRREEsvI8FeQ6LscRd2k8rTaIk=; b=Y3lgvgoYcy0wWpX1ZZ9MmpC6EQ2AfMRBVkvKApBQefluuy/upaUP2XcHH5HV/lbf02 xDB+mBdLBv1evV2awBfY5vagBd5PywUFPyN0gNSLBltHhuuKhT/VgEKLjrwqo0IjejBs NbGXQf0K26PoQ9oBNjYbktRMAXTAOEVoPm6F2ogTuv5ud2iAUgV5fC7o7Gd44258JsPa zVKO4kHBDeTWgxS1Lwx4avmAVK5PmjzshfE5eegCty3e4sdHNnDnJ92Y4bpvPThIrhXI MU6z9Mut4wMSDIWL5E2BOpPs3M+X2GXWbNyCc5VxySHOT7F/iAU05MISIZwLJ01d6HVv RFAg== X-Forwarded-Encrypted: i=1; AFNElJ8Op45eDBkq3IVEwWWqgbV/ul0fHBLtzxGu+K89A+YB2Fkvx8BOV/TDHjioZW6atNSvdUW+TrY=@lists.linux.dev X-Gm-Message-State: AOJu0YzpoB40EWlfx1b6V/2ZjAO1NJtEwxoDUxGaiBrQqdYWPKLZ1d4G TB25sqKJJ65IxAltCZPuc67v7hdAQgjPeIXm4HvPRzjfRuLhBG5Whytoj0orOVh7hg4jtFPy4GU SjqzL9Q== X-Received: from plai2.prod.google.com ([2002:a17:902:c942:b0:2b3:2649:c9c1]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:d30b:b0:2b0:673a:7c90 with SMTP id d9443c01a7336-2b5f9f50051mr108270095ad.28.1776717807739; Mon, 20 Apr 2026 13:43:27 -0700 (PDT) Date: Mon, 20 Apr 2026 13:43:26 -0700 In-Reply-To: <20260220004223.4168331-5-dmatlack@google.com> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260220004223.4168331-1-dmatlack@google.com> <20260220004223.4168331-5-dmatlack@google.com> Message-ID: Subject: Re: [PATCH v2 04/10] KVM: selftests: Use u64 instead of uint64_t From: Sean Christopherson To: David Matlack Cc: Paolo Bonzini , Ackerley Tng , Albert Ou , Alexandre Ghiti , Andrew Jones , Anup Patel , Atish Patra , Bibo Mao , Christian Borntraeger , Claudio Imbrenda , Colin Ian King , David Hildenbrand , Fuad Tabba , Huacai Chen , James Houghton , Janosch Frank , Joey Gouly , kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Lisa Wang , loongarch@lists.linux.dev, Marc Zyngier , Maxim Levitsky , Nutty Liu , Oliver Upton , Palmer Dabbelt , Paul Walmsley , "Pratik R. Sampat" , Rahul Kumar , Shuah Khan , Suzuki K Poulose , Tianrui Zhao , Wu Fei , Yosry Ahmed , Zenghui Yu Content-Type: text/plain; charset="us-ascii" On Fri, Feb 20, 2026, David Matlack wrote: > Use u64 instead of uint64_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/uint64_t/u64/g' > > Then by manually adjusting whitespace to make checkpatch.pl happy. > > Also include in include/test_util.h and > include/x86/pmu.h to avoid compilation failure. kvm_util_types.h also needs to include types.h, as it blatantly uses u64 without any includes. It obviously works thanks to ordering, but it's a lurking trap for others.