Message ID | 1527036495-24084-1-git-send-email-inki.dae@samsung.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-samsung-soc-owner@kernel.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 CDC1B600CC for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Wed, 23 May 2018 00:48:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8BE328E05 for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Wed, 23 May 2018 00:48:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98D6728E1C; Wed, 23 May 2018 00:48:25 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CACC428E05 for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Wed, 23 May 2018 00:48:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753484AbeEWAsW (ORCPT <rfc822;patchwork-linux-samsung-soc@patchwork.kernel.org>); Tue, 22 May 2018 20:48:22 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:11044 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753481AbeEWAsV (ORCPT <rfc822;linux-samsung-soc@vger.kernel.org>); Tue, 22 May 2018 20:48:21 -0400 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1527036499; bh=mIXl+nOsJOEYBh50XvENMClgP/6nEoMtGZVHUJQ2Fh8=; h=From:To:Cc:Subject:Date:References:From; b=IiGUCpTqoZw8H5zcKRAO2dbH94xMYMAFd6LCNvBQbBt8qCGZ+EyL76YyppBqalfHL LvFlSbMAoxsOUZ2mWH2QVwYmNZOISRA47pyG/mCMxKCcGs9lVVxBtua5PtHMOdufgb AF3Y4ysbqHTZlm2/3RWCw2U+P9XeV8d73zGWfoRQ= 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 Cc: linux-samsung-soc@vger.kernel.org, andrzej.p@samsung.com, dan.carpenter@oracle.com, Inki Dae <inki.dae@samsung.com> 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-samsung-soc.vger.kernel.org> X-Mailing-List: linux-samsung-soc@vger.kernel.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(-)