From patchwork Wed Mar 18 18:30:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Vesely X-Patchwork-Id: 6042761 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CA70EBF90F for ; Wed, 18 Mar 2015 18:30:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF68F2041D for ; Wed, 18 Mar 2015 18:30:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0318F203B1 for ; Wed, 18 Mar 2015 18:30:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8012A6E8AA; Wed, 18 Mar 2015 11:30:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by gabe.freedesktop.org (Postfix) with ESMTP id E661E6E1D9 for ; Wed, 18 Mar 2015 11:30:20 -0700 (PDT) Received: by qgh62 with SMTP id 62so45008434qgh.1 for ; Wed, 18 Mar 2015 11:30:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=Ug6cYiRLTaTXBYUD1A3Ftg+dt2J/r+q07LmHdw+YKtM=; b=RWaqRhBtuWYchFbrugYSplkwrYPVWPh/acZbTODeRpQ/qkTjrtDAHD4VSJve6OiTzd YEH0cxomgphqs3yAbKPuwfjARiaT8j8EWd+/qsezCaH0YyRr4yWEhQ/VQHQYYe470m8f 9W2zPTxEL5/TTSP0VnMlZ2+GvEo7rOJAkrWTDhrNdntptwrx2Che8Y3/vfZEXxS8hWTh fHv5h87j3yku6Vq/j4FxOzqdSGs8LcV543Qa1rV5vud8sWllz3S60Z/FMsYSDihC9Jy4 30Orzo8iMAO5IKgge7+20oDp0Wv6iF5boi8yCNoSg5PyDpe24OfeunqZaCb5PEpMi+MU 1m0g== X-Gm-Message-State: ALoCoQkf24DALIKnLZmkWdSRmk31GzxzTzzHR6nAyotMfCcP0ONKOgaDJxGbcwTR1eJydKg0vDTR X-Received: by 10.55.42.219 with SMTP id q88mr105623608qkq.3.1426703420377; Wed, 18 Mar 2015 11:30:20 -0700 (PDT) Received: from adriatix.rutgers.edu ([198.151.130.138]) by mx.google.com with ESMTPSA id y10sm12399409qgd.14.2015.03.18.11.30.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 11:30:19 -0700 (PDT) From: Jan Vesely To: dri-devel@lists.freedesktop.org, Tobias Jakobi Subject: [PATCH libdrm 1/1] tests/exynos: Fix warnings Date: Wed, 18 Mar 2015 14:30:18 -0400 Message-Id: <1426703418-18489-1-git-send-email-jan.vesely@rutgers.edu> X-Mailer: git-send-email 2.1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jan Vesely --- tests/exynos/exynos_fimg2d_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c index e7d9b72..dfb34ac 100644 --- a/tests/exynos/exynos_fimg2d_test.c +++ b/tests/exynos/exynos_fimg2d_test.c @@ -183,7 +183,7 @@ static struct exynos_bo *exynos_create_buffer(struct exynos_device *dev, /* Allocate buffer and fill it with checkerboard pattern, where the tiles * * have a random color. The caller has to free the buffer. */ -void *create_checkerboard_pattern(unsigned int num_tiles_x, +static void *create_checkerboard_pattern(unsigned int num_tiles_x, unsigned int num_tiles_y, unsigned int tile_size) { unsigned int *buf; @@ -573,6 +573,7 @@ static int g2d_checkerboard_test(struct exynos_device *dev, src_img.user_ptr[0].userptr = (unsigned long)checkerboard; src_img.user_ptr[0].size = img_w * img_h * 4; break; + case G2D_IMGBUF_COLOR: default: ret = -EFAULT; goto fail;