Re: [PATCH v2 04/10] KVM: selftests: Use u64 instead of uint64_t
From: Sean Christopherson
Date: Thu Mar 05 2026 - 12:19:52 EST
On Fri, Feb 20, 2026, David Matlack wrote:
> -static uint64_t pread_uint64(int fd, const char *filename, uint64_t index)
> +static u64 pread_uint64(int fd, const char *filename, u64 index)
I think it's also worth converting the function to pread_u64().
> {
> - uint64_t value;
> + u64 value;
> off_t offset = index * sizeof(value);
>
> TEST_ASSERT(pread(fd, &value, sizeof(value), offset) == sizeof(value),