All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paulo Zanoni <przanoni@gmail.com>
To: intel-gfx@lists.freedesktop.org
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: [PATCH gpu-tools v2] gem_vmap_blits: fix compilation if I915_PARAM_HAS_VMAP is not defined
Date: Wed, 24 Aug 2011 14:57:31 -0300	[thread overview]
Message-ID: <1314208651-12144-1-git-send-email-paulo.r.zanoni@intel.com> (raw)

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(-)

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

             reply	other threads:[~2011-08-24 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24 17:57 Paulo Zanoni [this message]
2011-08-31 16:36 ` [PATCH gpu-tools v2] gem_vmap_blits: fix compilation if I915_PARAM_HAS_VMAP is not defined Eugeni Dodonov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1314208651-12144-1-git-send-email-paulo.r.zanoni@intel.com \
    --to=przanoni@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=paulo.r.zanoni@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.