[PATCH v2 04/10] KVM: selftests: Use u64 instead of uint64_t
Sean Christopherson
seanjc at google.com
Thu Mar 5 09:19:34 PST 2026
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),
More information about the linux-riscv
mailing list