From nobody Sun Sep 7 14:55:17 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82821EB64DA for ; Thu, 20 Jul 2023 07:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbjGTHf1 (ORCPT ); Thu, 20 Jul 2023 03:35:27 -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-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8"; format="flowed" 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=20 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=20 **root, u64 id, u32 seqno) unsigned int above; /* Insert a join above the current layer */ - next =3D kzalloc(sizeof(*next) + KSYNCMAP * sizeof(next), + next =3D kzalloc(sizeof(*next) + KSYNCMAP * sizeof(*next), GFP_KERNEL); if (unlikely(!next)) return -ENOMEM;