From patchwork Tue Jun 19 11:05:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10474085 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 D893D60383 for ; Tue, 19 Jun 2018 11:05:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBBE628776 for ; Tue, 19 Jun 2018 11:05:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFAC028B5F; Tue, 19 Jun 2018 11:05:26 +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 4ABBE28A2D for ; Tue, 19 Jun 2018 11:05:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A9D506E22C; Tue, 19 Jun 2018 11:05:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 416986E22C for ; Tue, 19 Jun 2018 11:05:22 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jun 2018 04:05:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,242,1526367600"; d="scan'208";a="68172791" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga002.jf.intel.com with ESMTP; 19 Jun 2018 04:05:17 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1fVERm-000E84-1w; Tue, 19 Jun 2018 19:05:14 +0800 Date: Tue, 19 Jun 2018 19:05:07 +0800 From: kbuild test robot To: Maciej Purski Subject: [PATCH] drm/bridge: tc358764: fix noderef.cocci warnings Message-ID: <20180619110506.GA20216@lkp-ib03> References: <1529396370-18761-8-git-send-email-m.purski@samsung.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1529396370-18761-8-git-send-email-m.purski@samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: lkp@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , David Airlie , dri-devel@lists.freedesktop.org, Maciej Purski , Thierry Reding , Laurent Pinchart , Marek Szyprowski , linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , Kukjin Kim , devicetree@vger.kernel.org, Bartlomiej Zolnierkiewicz , Rob Herring , linux-arm-kernel@lists.infradead.org, Seung-Woo Kim , linux-kernel@vger.kernel.org, Kyungmin Park , kbuild-all@01.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot drivers/gpu/drm/bridge/tc358764.c:179:60-66: ERROR: application of sizeof to pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci Fixes: 147fe90c9d51 ("drm/bridge: tc358764: Add DSI to LVDS bridge driver") CC: Andrzej Hajda Signed-off-by: kbuild test robot --- tc358764.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/bridge/tc358764.c +++ b/drivers/gpu/drm/bridge/tc358764.c @@ -176,7 +176,8 @@ static int tc358764_read(struct tc358764 ssize_t ret; cpu_to_le16s(&addr); - ret = mipi_dsi_generic_read(dsi, &addr, sizeof(addr), val, sizeof(val)); + ret = mipi_dsi_generic_read(dsi, &addr, sizeof(addr), val, + sizeof(*val)); if (ret >= 0) le32_to_cpus(val);