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: 10474089 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 51DDE60383 for ; Tue, 19 Jun 2018 11:05:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45A7128776 for ; Tue, 19 Jun 2018 11:05:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3781828B5F; Tue, 19 Jun 2018 11:05:31 +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.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 DB8F528776 for ; Tue, 19 Jun 2018 11:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966270AbeFSLFY (ORCPT ); Tue, 19 Jun 2018 07:05:24 -0400 Received: from mga18.intel.com ([134.134.136.126]:58308 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965688AbeFSLFW (ORCPT ); Tue, 19 Jun 2018 07:05:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jun 2018 04:05:21 -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 Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , Rob Herring , Mark Rutland , Thierry Reding , Kukjin Kim , Krzysztof Kozlowski , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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);