Message ID | 1527036495-24084-1-git-send-email-inki.dae@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 3C1EB600CC for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 23 May 2018 00:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28EEA28EB2 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 23 May 2018 00:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 198C828EC7; Wed, 23 May 2018 00:55:33 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, 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 4177428EB2 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 23 May 2018 00:55:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E3CE489254; Wed, 23 May 2018 00:55:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 418 seconds by postgrey-1.36 at gabe; Wed, 23 May 2018 00:55:22 UTC Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3AB1189254 for <dri-devel@lists.freedesktop.org>; Wed, 23 May 2018 00:55:19 +0000 (UTC) Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180523004819epoutp04d0f50928fb5488f2074481087784ca78~xH5siwt8Y2069020690epoutp04h; Wed, 23 May 2018 00:48:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180523004819epoutp04d0f50928fb5488f2074481087784ca78~xH5siwt8Y2069020690epoutp04h Received: from epsmges2p3.samsung.com (unknown [182.195.40.156]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180523004817epcas1p2b236cd3d632e1f118145597af77747c4~xH5qiEqgr2472724727epcas1p2W; Wed, 23 May 2018 00:48:17 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id A0.6A.04113.15AB40B5; Wed, 23 May 2018 09:48:17 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180523004817epcas2p132bbd4a6b606ec05541ddab5f2e793f7~xH5qNidd21594515945epcas2p1t; Wed, 23 May 2018 00:48:17 +0000 (GMT) X-AuditID: b6c32a47-bdfff70000001011-7e-5b04ba514f80 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 9B.69.03817.15AB40B5; Wed, 23 May 2018 09:48:17 +0900 (KST) Received: from daeinki-desktop.tn.corp.samsungelectronics.net ([10.113.62.206]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P95005C9OWG9Z00@mmp2.samsung.com>; Wed, 23 May 2018 09:48:17 +0900 (KST) From: Inki Dae <inki.dae@samsung.com> To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: scaler: fix static checker warning Date: Wed, 23 May 2018 09:48:15 +0900 Message-id: <1527036495-24084-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42LZdljTXDdwF0u0waWrKhazXrazWLz+N53F 4srX92wWk+5PYLGYcX4fkwOrx/3u40weH5/eYvHo27KK0ePzJrkAlqhUm4zUxJTUIoXUvOT8 lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zBygvUoKZYk5pUChgMTiYiV9O5ui /NKSVIWM/OISW6VoQ0MjPUMDcz0jIyBtHGtlZApUkpCaceTbFfaCx2wVv/sa2BoYP7F2MXJy SAiYSBx7/IANxBYS2MEo0f49rouRC8j+zihx5sRrRpiiN0tXMkEUbWCUOHVbBKJoIpPE38Ut YEVsAqoSE1fcB5skIqAs8XfiKrA4s0ClxKJJLewgtrCAvcTVNdvABrEA1d/dehTM5hVwkdjd 2MgOsUxO4uSxyawgCyQE7rJKbGq4BJTgAHJcJDacM4CoEZZ4dXwLVL20xLNVGxkh6tsZJXad vc4G4fQwSixfvAiqylji2cIuJoiL+CQ6Dv+FGsor0dEmBFHiIfFuzWtosDhKzF67mB3i41iJ L5f/s05glFzAyLCKUSy1oDg3PbXYqMBYrzgxt7g0L10vOT93EyM4JWi572Dcds7nEKMAB6MS D2+ACEu0EGtiWXFl7iFGCQ5mJRHeT5eYooV4UxIrq1KL8uOLSnNSiw8xmgLDYyKzlGhyPjBd 5ZXEG5oaGRsbW5iaWxobWCqJ8940+xclJJCeWJKanZpakFoE08fEwSnVwCiTH/oo8mvgLUEP w1aeE4XL7l+z3nou2iJhimT03lwJW92GzoM/0pQLeP6rfwtO7b14pM835Mkr4zXyunoVG8ve lexncWwMqql9rPDpx+65/Uab+D9Eqh+/qyWvcl/yttut/JlBf41M8n3teYXEtwp7XPao497L c+2ExifpmqU2NYEtkfcslFiKMxINtZiLihMBenWfLx8DAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jQd3AXSzRBu2LBCxmvWxnsXj9bzqL xZWv79ksJt2fwGIx4/w+JgdWj/vdx5k8Pj69xeLRt2UVo8fnTXIBLFFcNimpOZllqUX6dglc GUe+XWEveMxW8buvga2B8RNrFyMnh4SAicSbpSuZuhi5OIQE1jFKrNmwhA0kISQwmUli+uEi EJtNQFVi4or7YHERAWWJvxNXMXYxcnAwC1RKLL6bCBIWFrCXuLpmGxOIzQJUfnfrUTCbV8BF YndjIzvELjmJk8cms05g5FrAyLCKUTK1oDg3PbfYqMAoL7Vcrzgxt7g0L10vOT93EyPQ69sO a/XvYHy8JP4QowAHoxIP7woxlmgh1sSy4srcQ4wSHMxKIryfLjFFC/GmJFZWpRblxxeV5qQW H2KU5mBREuflzz8WKSSQnliSmp2aWpBaBJNl4uCUamDM23bBSenSnqp8N5+udAt9i5deqdKp TdnW65qWs3qfWRzl3P8wKTOY94jbmV41q/kGERuLD+1myuBNEcycfcJc942N70Y/k77rG5Yd +vjm6XwexuKDT963rdlatO/ovwADqSl9XkUF0VGBrocz7j8Q7jmVWaXxb8lfXfdiX4GU/bcD hT/M11FiKc5INNRiLipOBABVNr1U9gEAAA== X-CMS-MailID: 20180523004817epcas2p132bbd4a6b606ec05541ddab5f2e793f7 X-Msg-Generator: CA CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180523004817epcas2p132bbd4a6b606ec05541ddab5f2e793f7 X-RootMTR: 20180523004817epcas2p132bbd4a6b606ec05541ddab5f2e793f7 References: <CGME20180523004817epcas2p132bbd4a6b606ec05541ddab5f2e793f7@epcas2p1.samsung.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: andrzej.p@samsung.com, linux-samsung-soc@vger.kernel.org, dan.carpenter@oracle.com MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_scaler.c b/drivers/gpu/drm/exynos/exynos_drm_scaler.c index 63b05b7..91d4382 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_scaler.c +++ b/drivers/gpu/drm/exynos/exynos_drm_scaler.c @@ -397,7 +397,7 @@ static inline u32 scaler_get_int_status(struct scaler_context *scaler) return scaler_read(SCALER_INT_STATUS); } -static inline bool scaler_task_done(u32 val) +static inline int scaler_task_done(u32 val) { return val & SCALER_INT_STATUS_FRAME_END ? 0 : -EINVAL; }
drivers/gpu/drm/exynos/exynos_drm_scaler.c:402 scaler_task_done() warn: signedness bug returning '(-22)' Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> --- drivers/gpu/drm/exynos/exynos_drm_scaler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)