From patchwork Fri Sep 5 09:52:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 4851091 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E53D39F314 for ; Fri, 5 Sep 2014 09:52:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2177120266 for ; Fri, 5 Sep 2014 09:52:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4DF8720120 for ; Fri, 5 Sep 2014 09:52:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D50F36E836; Fri, 5 Sep 2014 02:52:24 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 742C26E83E for ; Fri, 5 Sep 2014 02:52:23 -0700 (PDT) Received: by mail-wg0-f43.google.com with SMTP id a1so11445055wgh.14 for ; Fri, 05 Sep 2014 02:52:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=wCx+2YXmTg0q2+qFgIPuXdvtm2a7tsuXQPblIdk1ZHE=; b=DIbcu83gjb8Q+VPPp/tC/jUbVDXVTbc9EoIJw5cp08i+adeTANe5r/uA5qcBHTBot4 9NGSlQW5q11QDqw/5CPGt5iVCgaO21BLWSrDVLTE1ZjNgAiUYkH4wZUeuq2q7T245yOc pBa0W5F7umxauQdjofCT+e+d5lRqcM2QlXIw9O6U+FRqMrn42bARvH2vozvR6HyFbcU6 aSH2QWvRXqlY+bP4KOkNhHa5uF4yMxL3K0vk4DhyvuTj6jWHW4W2J5Yju13jXxL58OIL o7iYFXmLn7Exvk00RyJyyf1zMgscqcSPZQXjx2uUZ7/hWkQqYE7Lu/DMleFpe5KuMONP H26A== X-Gm-Message-State: ALoCoQlwEJ6GW9WxavD2eOmri2qKQFAmHmHDyEEEdIovfhIpqnDcOrnRp5qs9loRiiTwiCH1OBGt X-Received: by 10.194.71.136 with SMTP id v8mr13314084wju.38.1409910736592; Fri, 05 Sep 2014 02:52:16 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id h6sm875050wjb.33.2014.09.05.02.52.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Sep 2014 02:52:15 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Fri, 5 Sep 2014 10:52:07 +0100 Message-Id: <1409910729-13485-5-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1409910729-13485-1-git-send-email-thomas.wood@intel.com> References: <5408C410.8080500@intel.com> <1409910729-13485-1-git-send-email-thomas.wood@intel.com> Subject: [Intel-gfx] [PATCH i-g-t v2 4/6] lib/igt_fb: ensure igt_create_fb parameters are consistent X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Make sure the parameters in the prototype and implementation of igt_create_fb match and are complete so that the documentation is correct. Signed-off-by: Thomas Wood --- lib/igt_fb.c | 2 +- lib/igt_fb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/igt_fb.c b/lib/igt_fb.c index f9f5de2..ce0dd6b 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -455,7 +455,7 @@ igt_create_fb_with_bo_size(int fd, int width, int height, * The kms id of the created framebuffer. */ unsigned int igt_create_fb(int fd, int width, int height, uint32_t format, - unsigned tiling, struct igt_fb *fb) + unsigned int tiling, struct igt_fb *fb) { return igt_create_fb_with_bo_size(fd, width, height, format, tiling, fb, 0); } diff --git a/lib/igt_fb.h b/lib/igt_fb.h index e6f72e9..d9fb6bb 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -70,7 +70,7 @@ igt_create_fb_with_bo_size(int fd, int width, int height, uint32_t format, unsigned int tiling, struct igt_fb *fb, unsigned bo_size); unsigned int igt_create_fb(int fd, int width, int height, uint32_t format, - unsigned int , struct igt_fb *fb); + unsigned int tiling, struct igt_fb *fb); unsigned int igt_create_color_fb(int fd, int width, int height, uint32_t format, unsigned int tiling, double r, double g, double b,