summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-06-20 12:04:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-06-20 12:04:54 +0100
commit7b6e219fe461fbbe0bd498f7731781358d11f934 (patch)
treeedfdb0c525dea8ebede27047987cf0eb7141274c /src
parentebc5e9c3b2241be69bee7b96bd63ef00dacf816c (diff)
sna: Hide compiler warnings for change in uAPI defines
Just a minor, safe, change in the uAPI defines for DRM_CAP_CURSOR_WIDTH causes the compiler to spit out a warning. (The warning was intentional to check that when the defines were added to the uAPI they matched. Now that they are concrete in the uABI, but the defines are subject to the whims of the author.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index a22d94e4..d790975c 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -6296,8 +6296,12 @@ sna_cursor_pre_init(struct sna *sna)
return;
#define LOCAL_IOCTL_GET_CAP DRM_IOWR(0x0c, struct local_get_cap)
-#define DRM_CAP_CURSOR_WIDTH 8
-#define DRM_CAP_CURSOR_HEIGHT 9
+#ifndef DRM_CAP_CURSOR_WIDTH
+#define DRM_CAP_CURSOR_WIDTH 0x8
+#endif
+#ifndef DRM_CAP_CURSOR_HEIGHT
+#define DRM_CAP_CURSOR_HEIGHT 0x9
+#endif
#define I915_PARAM_HAS_COHERENT_PHYS_GTT 29