Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9225182rwp; Thu, 20 Jul 2023 01:14:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlFHAEuwM8adxFwA/yocBEE0p3+6+0alqipX8btZWonnjBxPQY3TgdWfuLnIt6WI6JbGCIQV X-Received: by 2002:aa7:df08:0:b0:51e:234:cc51 with SMTP id c8-20020aa7df08000000b0051e0234cc51mr3821398edy.17.1689840862239; Thu, 20 Jul 2023 01:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689840862; cv=none; d=google.com; s=arc-20160816; b=fF+xxH5Ld01l99ap3Oy1Lqi5y4UfkjnyCApXUSGtaaSlw9qt5gYiFbD/zv3CG9PKbq fO9QgtoWKuDmPmD9cKDFG6oj/FmQbG/am75neC3dzalqz7UIptSUOs94xLHZbsdZDJKu XtzFitWk0u4QLu5JLKGR7ltt30YaQwXycYVD11Nm8FwmC88M+3mtzSZi6RSdalyiX0a7 XGw2yMoTFyRlYNMv/RUuMduP+8hCEVGq0cuHRKp2ZFhsPG2DbNynS9VunfrqMnXEfJik 8S03+twYHGhfxYpZZUUk0q5de6rGs5nZYxLxBGB7gXrvypfreOTYG6ELwTFoTk9NYL4b hlkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=v5+MzEvHshUl2voVw9ar7JZsweWGIU4F4JN68+WhIFQ=; fh=kunxSmGMyALV5wYLOmLaMZ1bf/xXeH5BO8wLNm44OcE=; b=oHLYdg6E2YOAI8O5fjroYJdxrQXLAY3f/WxFQ7CIKFAWHgXmzEllw5tps0IMftqu0r oKXlO0IGHlc7Z1E8YrP6ipqL+PUQ6ddO4jiti7TJYa9gQT3EfAMDbejsWrt5n+MXA0Cb lhdar1DdP491UAL8lmVl4NkuhMQURC/s9Gj8NLKV5r7FYMUM8a0PFckmo5rDfcrrcy17 lpIRwv3Hiv0hfI3lxOozcsHnrqyZgc8kRcx/gDbpQXfVcuWi1CMqYc3PumBkdJON0pRl Kp4kBUVmpilU9uoI+pUZwVrA1VYhhYZ+RAH2a2swPCGI8Sd3wwhp9wBpGiRn6XDfdkCs Vrwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=H+z2ERjQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o22-20020aa7d3d6000000b0051df118addasi517070edr.230.2023.07.20.01.13.58; Thu, 20 Jul 2023 01:14:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=H+z2ERjQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230453AbjGTHf0 (ORCPT + 99 others); Thu, 20 Jul 2023 03:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbjGTHfZ (ORCPT ); Thu, 20 Jul 2023 03:35:25 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C60721BC0 for ; Thu, 20 Jul 2023 00:35:23 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R64Gb3hvrzBRDsR for ; Thu, 20 Jul 2023 15:35:19 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689838519; x=1692430520; bh=1iZb7zRA8PkkBk45qpdnV0JsWhC I8t4li5D97yw5kxA=; b=H+z2ERjQlyQONBYnelCkdUXHQJDLKNgXAcnVQ4O0m7A d9U42ufB7dgcbtp2txb4hOfpB/O6APt0vdq9ZFuqktN0+whBcpsUtW1mUXdcc+7G hGFBgf4Mf32MBGteMAcxVhgN8r+odFfoLZhineG31hXTW2vafMpvw5XMVxnxtKYj u/2jEYkY3/R875tg8S27DsAbeO/isxuqJ8vY3CbXeJh5mSAT/Wm+H42CkgPWhbBl HBcZcStePOSVnYlzHcpqri0BqsEY4KUe6E+I1xEMyO5IrbnunRriQSrVKzBmEowY FQlW7nc2ayrQcYnS739WW3zzUcgAnphSRGTpy5iXFxQ== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lWUJIvI0JzgI for ; Thu, 20 Jul 2023 15:35:19 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R64Gb2794zBRDs1; Thu, 20 Jul 2023 15:35:19 +0800 (CST) MIME-Version: 1.0 Date: Thu, 20 Jul 2023 15:35:19 +0800 From: sunran001@208suo.com To: airlied@gmail.com, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915: fix application of sizeof to pointer In-Reply-To: <20230720073355.3196-1-xujianghui@cdjrlc.com> References: <20230720073355.3196-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <442918910b90b9a8e2e5f8a3874fdb44@208suo.com> X-Sender: sunran001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The coccinelle check report: ./drivers/scsi/csiostor/csio_mb.c:1554:46-52: ERROR: application of sizeof to pointer Signed-off-by: Ran Sun --- drivers/gpu/drm/i915/i915_syncmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_syncmap.c b/drivers/gpu/drm/i915/i915_syncmap.c index 60404dbb2e9f..4eeaf12be72d 100644 --- a/drivers/gpu/drm/i915/i915_syncmap.c +++ b/drivers/gpu/drm/i915/i915_syncmap.c @@ -282,7 +282,7 @@ static noinline int __sync_set(struct i915_syncmap **root, u64 id, u32 seqno) unsigned int above; /* Insert a join above the current layer */ - next = kzalloc(sizeof(*next) + KSYNCMAP * sizeof(next), + next = kzalloc(sizeof(*next) + KSYNCMAP * sizeof(*next), GFP_KERNEL); if (unlikely(!next)) return -ENOMEM;