From 2a7778d4e3f4730572e4f22c39c85787daa73469 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Wed, 24 Aug 2011 14:57:31 -0300 Subject: [PATCH] gem_vmap_blits: fix compilation if I915_PARAM_HAS_VMAP is not defined Previously, "make check" failed because the main() function was not defined. Signed-off-by: Paulo Zanoni Tested-By: Eugeni Dodonov Signed-Off-by: Daniel Vetter --- tests/gem_vmap_blits.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/gem_vmap_blits.c b/tests/gem_vmap_blits.c index c2ba390..05550a4 100644 --- a/tests/gem_vmap_blits.c +++ b/tests/gem_vmap_blits.c @@ -53,6 +53,11 @@ #if !defined(I915_PARAM_HAS_VMAP) #warning No vmap support in drm, skipping +int main(int argc, char **argv) +{ + fprintf(stderr, "No vmap support in drm.\n"); + return 77; +} #else #define WIDTH 512 -- 2.7.4