From patchwork Fri Mar 31 03:30:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 9655441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B3C8A602BD for ; Fri, 31 Mar 2017 03:30:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A801628641 for ; Fri, 31 Mar 2017 03:30:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CC3D2867F; Fri, 31 Mar 2017 03:30:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0B14728641 for ; Fri, 31 Mar 2017 03:30:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2359A6E9D9; Fri, 31 Mar 2017 03:30:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from epoutp01.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id A41B76E9D8 for ; Fri, 31 Mar 2017 03:30:39 +0000 (UTC) Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by epoutp01.samsung.com (KnoxPortal) with ESMTP id 20170331033037epoutp01bc887e781ea9a9bca4d3454b3d26eff4~w2eEu7g2n2409424094epoutp01x; Fri, 31 Mar 2017 03:30:37 +0000 (GMT) Received: from epsmges5p2.samsung.com (unknown [182.195.40.69]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170331033037epcas1p2bc617a496a64e4389b94218e4e0a8254~w2eEdONLq0660406604epcas1p2P; Fri, 31 Mar 2017 03:30:37 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2.samsung.com (EPCPMTA) with SMTP id E1.AE.21921.D5DCDD85; Fri, 31 Mar 2017 12:30:37 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20170331033037epcas5p461fb6bc9ee12cfc2247a3ab4481aaf54~w2eEBNgzh2317423174epcas5p43; Fri, 31 Mar 2017 03:30:37 +0000 (GMT) X-AuditID: b6c32a2d-f792a6d0000055a1-b7-58ddcd5d77d7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id F3.23.05013.C5DCDD85; Fri, 31 Mar 2017 12:30:37 +0900 (KST) Received: from localhost.localdomain ([10.113.62.209]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0ONN00AXLTQXW150@mmp2.samsung.com>; Fri, 31 Mar 2017 12:30:36 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com, emil.l.velikov@gmail.com Subject: [PATCH libdrm 3/3] tests/exynos: remove unused-function build warning Date: Fri, 31 Mar 2017 12:30:57 +0900 Message-id: <1490931057-30853-4-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 In-reply-to: <1490931057-30853-1-git-send-email-sw0312.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHKsWRmVeSWpSXmKPExsWy7bCmhm7s2bsRBi8PyFlc+fqez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bi8eLeRRaLKc25FjMmv2SzaFv9gdWB3WPVnA2sHjtn3WX3uN99nMnj3zF2j74tqxgD WKPcbDJSE1NSixRS85LzUzLz0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTKEnNKgTwjAzTg4Bzg Hqykb5fgltE24TNrwQHOii1N9g2Ml9i7GDk5JARMJLZ97mOGsMUkLtxbz9bFyMUhJDCLUWLN zW5mCOcHo8SGxj+sIFVsAjoS+5f8BrNFBEIlpv24D9bNLJAnsXb3DzBbWMBP4taz1WA2i4Cq xNSN04BsDg5eATeJVXOZIJYpSCy495YNxOYUcJd4/uonK0iJEFDJs+MlExh5FzAyrGKUSC1I LihOSs81ykst1ytOzC0uzUvXS87P3cQIDuZn0jsYD+9yP8QowMGoxMO7Q/BuhBBrYllxZe4h RgkOZiURXrl9QCHelMTKqtSi/Pii0pzU4kOMpkBnTWSWEk3OB0ZaXkm8oYm5ibmxgYW5paWJ kZI4b+PsZ+FCAumJJanZqakFqUUwfUwcnFINjKzv8p7ITG/x/LK4qm7dM9fU5lNmhRa3WnsC JshFfLV07354yuyMb9Qh8f3P7yefWXJG3N39ewSfstQM6YeSe95X5L3dJP/l+eWwo8tm/pC1 0ZfWT9m7Uq6+r6Ky8/ybKVeXNhcc/brhW8CZf8ffP36YGHywjlf0Zq5N9N/P7cweai8C2wze T1JiKc5INNRiLipOBAAupJZffAIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170331033037epcas5p461fb6bc9ee12cfc2247a3ab4481aaf54 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?6rmA7Iq57JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?U2V1bmctV29vIEtpbRtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170331033037epcas5p461fb6bc9ee12cfc2247a3ab4481aaf54 X-RootMTR: 20170331033037epcas5p461fb6bc9ee12cfc2247a3ab4481aaf54 References: <1490931057-30853-1-git-send-email-sw0312.kim@samsung.com> Cc: tjakobi@math.uni-bielefeld.de, sw0312.kim@samsung.com, robclark@freedesktop.org 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-Virus-Scanned: ClamAV using ClamSMTP The function g2d_blend_test() is blocked to call because of feature unsafety. This patch blocks with proper feature name and also blocks the function itself to remove build warning. Signed-off-by: Seung-Woo Kim --- tests/exynos/exynos_fimg2d_test.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c index 797fb6e..3495c62 100644 --- a/tests/exynos/exynos_fimg2d_test.c +++ b/tests/exynos/exynos_fimg2d_test.c @@ -523,6 +523,7 @@ fail: return 0; } +#if EXYNOS_G2D_USERPTR_TEST static int g2d_blend_test(struct exynos_device *dev, struct exynos_bo *src, struct exynos_bo *dst, @@ -621,6 +622,7 @@ fail: return 0; } +#endif static int g2d_checkerboard_test(struct exynos_device *dev, struct exynos_bo *src, @@ -864,7 +866,7 @@ int main(int argc, char **argv) * * Disable the test for now, until the kernel code has been sanitized. */ -#if 0 +#if EXYNOS_G2D_USERPTR_TEST ret = g2d_blend_test(dev, src, bo, G2D_IMGBUF_USERPTR); if (ret < 0) fprintf(stderr, "failed to test blend operation.\n");