Remove superfluous parentheses.

(already sent upstream)
Add cast to fix -Wpointer-sign warning with clang.
ifdef out senseless code that clang complains about with -Wtautological-pointer-compare.

I've asked upstream what check was really intended here.
merge xf86-video-intel-2.21.15
Use drmMap rather than mmap directly, to invoke the ioctl on NetBSD.
Oops...  Fix sense of test in drmCheckModesettingSupported.
Back out unintended part of last commit.
PR/48347: Yasushi Oshima: Cannot input Japanese special keys of JP106 keyboard
with NetBSD/evbarm(RPI) or some arch.