From cd33b47a47251eadd21815bfd2ecc8529c7bcf6d Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Tue, 4 Aug 2015 16:25:17 -0300 Subject: [PATCH] tests/gem_mmap_wc: don't fail if the Kernel is too old for the getparam flag Just don't check the drmIoctl() return code: the "if (val)" should be enough to prevent any problems. v2: Don't SKIP, just proceed (Chris). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89739 Cc: Chris Wilson Reviewed-by: Chris Wilson Signed-off-by: Paulo Zanoni --- tests/gem_mmap_wc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_mmap_wc.c b/tests/gem_mmap_wc.c index 6e434652..0a5326e9 100644 --- a/tests/gem_mmap_wc.c +++ b/tests/gem_mmap_wc.c @@ -104,7 +104,7 @@ test_invalid_flags(int fd) gp.value = &val; /* Do we have the new mmap_ioctl? */ - do_ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); + drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); if (val >= 1) { /*