From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C7FAC433EF for ; Sat, 11 Sep 2021 12:55:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D6A19611B0 for ; Sat, 11 Sep 2021 12:55:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235755AbhIKM4P (ORCPT ); Sat, 11 Sep 2021 08:56:15 -0400 Received: from mga04.intel.com ([192.55.52.120]:60242 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230249AbhIKM4P (ORCPT ); Sat, 11 Sep 2021 08:56:15 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10103"; a="219425403" X-IronPort-AV: E=Sophos;i="5.85,285,1624345200"; d="scan'208";a="219425403" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2021 05:55:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,285,1624345200"; d="scan'208";a="470958122" Received: from lkp-server01.sh.intel.com (HELO 730d49888f40) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 11 Sep 2021 05:55:00 -0700 Received: from kbuild by 730d49888f40 with local (Exim 4.92) (envelope-from ) id 1mP2X6-0005Ro-1X; Sat, 11 Sep 2021 12:55:00 +0000 Date: Sat, 11 Sep 2021 20:54:18 +0800 From: kernel test robot To: Christian =?iso-8859-1?Q?K=F6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org Cc: kbuild-all@lists.01.org, daniel@ffwll.ch Subject: [PATCH] dma-buf: fix noderef.cocci warnings Message-ID: <20210911125418.GA43370@6494e1c1ac26> References: <20210910082655.82168-4-christian.koenig@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210910082655.82168-4-christian.koenig@amd.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: kernel test robot drivers/dma-buf/dma-resv.c:525:7-13: 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 CC: Christian König Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Christian-K-nig/dma-buf-add-dma_resv_for_each_fence_unlocked/20210910-163040 base: git://anongit.freedesktop.org/drm-intel for-linux-next :::::: branch date: 28 hours ago :::::: commit date: 28 hours ago dma-resv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/dma-buf/dma-resv.c +++ b/drivers/dma-buf/dma-resv.c @@ -522,7 +522,7 @@ int dma_resv_get_fences(struct dma_resv /* Eventually re-allocate the array */ *shared = krealloc_array(*shared, count, - sizeof(*shared), + sizeof(**shared), GFP_KERNEL); if (count && !*shared) return -ENOMEM;