From patchwork Wed Aug 24 17:19:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 1093382 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7OHKNMg032530 for ; Wed, 24 Aug 2011 17:20:49 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0910CA08DE for ; Wed, 24 Aug 2011 10:20:23 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-yw0-f49.google.com (mail-yw0-f49.google.com [209.85.213.49]) by gabe.freedesktop.org (Postfix) with ESMTP id AC7C39E7AD for ; Wed, 24 Aug 2011 10:20:01 -0700 (PDT) Received: by ywp17 with SMTP id 17so1264038ywp.36 for ; Wed, 24 Aug 2011 10:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=kC0JDaPj63+1rNTvMFrMlbPAxcpingYJLsknN0wIam4=; b=GCyoG+Bbu+Gfug9H41ny/J6cZ+b/vYzPbCz3/wC0PwCqGKbnW5j/jLIzcxIb6k+mT0 nz622S6orjJaLPCMscCRXMWvBKX1lb1yc7ed8WQVvoD5WY4ZM9FU60l+LdrzCCTGcxGV Jo4XnLq9AkNsm9jx9CmS1u6sWNSt76ncAXvtM= Received: by 10.236.79.129 with SMTP id i1mr4758460yhe.22.1314206401124; Wed, 24 Aug 2011 10:20:01 -0700 (PDT) Received: from localhost.localdomain (189-30-164-167.ctame700.dsl.brasiltelecom.net.br [189.30.164.167]) by mx.google.com with ESMTPS id x42sm254583yhm.9.2011.08.24.10.19.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Aug 2011 10:19:59 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Wed, 24 Aug 2011 14:19:39 -0300 Message-Id: <1314206379-10595-1-git-send-email-paulo.r.zanoni@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: Paulo Zanoni Subject: [Intel-gfx] [PATCH gpu-tools] gem_vmap_blits: fix compilation if I915_PARAM_HAS_VMAP is not defined X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 24 Aug 2011 17:20:49 +0000 (UTC) Previously, "make check" failed because the main() function was not defined. Signed-off-by: Paulo Zanoni --- We could also try to move the logic outside the file and let autoconf test for vmap, so we wouldn't even try to compile the file. If you prefer, I can implement this too. 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..947f026 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 1; +} #else #define WIDTH 512