diff mbox

[gpu-tools,v2] gem_vmap_blits: fix compilation if I915_PARAM_HAS_VMAP is not defined

Message ID 1314208651-12144-1-git-send-email-paulo.r.zanoni@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Paulo Zanoni Aug. 24, 2011, 5:57 p.m. UTC
Previously, "make check" failed because the main() function was not
defined.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
---

Version 2, returning "77".

 tests/gem_vmap_blits.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Eugeni Dodonov Aug. 31, 2011, 4:36 p.m. UTC | #1
On Wed, Aug 24, 2011 at 14:57, Paulo Zanoni <przanoni@gmail.com> wrote:

> Previously, "make check" failed because the main() function was not
> defined.
>
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
>

Works for me, so:
Tested-By: Eugeni Dodonov <eugeni.dodonov@intel.com>


> ---
>
> Version 2, returning "77".
>
>  tests/gem_vmap_blits.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> 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
> --
> 1.7.4.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
diff mbox

Patch

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