modeprint, modetest, proptest: cast __u64 to uint64_t
authorEleni Maria Stea <elene.mst@gmail.com>
Mon, 9 May 2022 11:59:37 +0000 (14:59 +0300)
committerEleni Maria Stea <elene.mst@gmail.com>
Mon, 9 May 2022 12:53:56 +0000 (15:53 +0300)
commit4caec56fb8ebfe475a83315a12941d80808f4dee
tree060b806454120e42b00bba1710a1e2975e23872f
parentc907d4ade13a0ef883972f4bafdc94bc8c1f3573
modeprint, modetest, proptest: cast __u64 to uint64_t

It seems that __u64 values are defined differently across systems. In
glibc it's defined as unsigned long, in Linux kernel headers
(int-ll64.h) as unsigned long long, and on FreeBSD as uint64_t so it
matches glibc. A temporal solution is to cast all __u64 values to
uint64_t to avoid warnings on Linux, but ideally we'd like a better fix
in the future.

See also: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/212
for discussion.

Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com>
tests/modeprint/modeprint.c
tests/modetest/modetest.c
tests/proptest/proptest.c