Package: libdrm-dev Version: 2.4.104-1 When I'm using 'DRM_IOCTL_I915_GEM_MMAP_OFFSET' literal in a C program, I get an error message: 'DRM_IOCTL_I915_GEM_MMAP_OFFSET' undeclared. Here is a transcript:
root@debian:~# gcc -xc -S -o - - << EOF #include <libdrm/drm.h> #include <libdrm/i915_drm.h> int main(void) { int code = 0; switch (code) { case DRM_IOCTL_I915_GEM_MMAP: case DRM_IOCTL_I915_GEM_MMAP_GTT: case DRM_IOCTL_I915_GEM_MMAP_OFFSET: break; } return 0; } EOF .file "" <stdin>: In function ‘main’: <stdin>:8:8: error: ‘DRM_IOCTL_I915_GEM_MMAP_OFFSET’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_I915_GEM_MMAP_GTT’? <stdin>:8:8: note: each undeclared identifier is reported only once for each function it appears in root@debian:~# I suggest that 'i915_drm.h' uapi header file be corrected. I am using Debian GNU/Linux 11.0, kernel 5.10.46-4 and libc6 2.31.