Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9284767rwp; Thu, 20 Jul 2023 02:29:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEtW+uQJ9V6UksXpSaGUGnYtkgbSQTXIhH/W+wgZR7CXHfEOaRtQVVxzH28u6VgfoM/mHFG X-Received: by 2002:a17:906:2c1:b0:98b:dc6c:b304 with SMTP id 1-20020a17090602c100b0098bdc6cb304mr2004759ejk.38.1689845361095; Thu, 20 Jul 2023 02:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689845361; cv=none; d=google.com; s=arc-20160816; b=xDwGm5aypmc7bifse/rT2a07kxJcwrve4TuwQEXl4URSqHBAvrtaUX8QaldNCInG+0 pmzET//aoavk2JREpeL7enFqW72lo1D9zzmt3UU5Kfa4WHl+3bn9u9zH6OTTDPCHol84 G6E9PSpyE/DLnugU14PC5o5Ad4agl/UvPC3Lt2lOx3sUzBIgXpwnulXaT7HVPOTX6iWu R9HrPCs7N2SGiadcG/VQ83CW0eHFCIDMx/Vgv3pMAtr9q1x4DN6kgU8loq39kDNW4hKD iaKyNn6CYO4UukT1U0JSt5LHUFR/YvWKR+jaYq0MfyTUy7KnfWr5aUl3shAy1HJO7XPs HAgQ== 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=5vHxzkglIF4HBFfXLhGQJgFWv9K49q9KNPW33y7881M=; fh=KmDAEVyHK4w8tKpBYMW1uwO+/f55ae9OT9MUcRSPH5U=; b=Wb4aSO0z1bMGOJpriuroThmsb+UrAPzyN8Wqroxp7lP3Fq/t+W+vfS52I9nyHSRNGF IlBjNU2MEF4Ih7vfuLrTUftClSyH0CQ6lGLcBGZpDm1soE5umvUB1GkRuAingEVePlsG 3aUmAzZRu6qxyhhnFirmVFJhrnlCcJ9RqrAupFQJzAkEEnQMSBpqxmS2SoIowMhUfA42 axy7mf72lTgHr7szr6wdIZEcxKpPDPuvglCT/inQ0jIkmH59l/5q46UIKPQ8h3RsQQDn DNUk4U0Vf/b8EJYR71IGLezhyHVJby5nlZ5L3xTjjcW+tzkKzjrxDJ71CNpfyRrHpoR/ jaDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=IsHn5oTo; 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 bx16-20020a170906a1d000b00992d0de8763si390240ejb.910.2023.07.20.02.28.56; Thu, 20 Jul 2023 02:29:21 -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=IsHn5oTo; 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 S231851AbjGTJAi (ORCPT + 99 others); Thu, 20 Jul 2023 05:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbjGTIms (ORCPT ); Thu, 20 Jul 2023 04:42:48 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C61E2115 for ; Thu, 20 Jul 2023 01:42:46 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R65mH156MzBRDsR for ; Thu, 20 Jul 2023 16:42:39 +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=1689842558; x=1692434559; bh=Md6rh710L5XA/naj1kP/jEptljd erUpfENeBbgOR95E=; b=IsHn5oTojRdCwIUOvrejeC7SF7COIg51M3qY7RgRAGT tcZxZbhz3sWMEI3WH+iNq/koy3OaupW6lcU2bkEcnQ0NIv0iOKy0w8TsZPZ6vzZo m31qy0PA/wDDFcsMkDE3ucs8Y4zN5cp1usee2snD+LeWwatRThP39Ec8jZNFvLOa OvBQ3Qf4XODzqzOnkIH4CISv/z4aVPRkQcBsOoR+Q2MdHa17AGNIRyeL9wPdQPgw uQNMZbwClnrgnjssiYYSxTxX6OSUk0b4oImlVnvwnU8h3q+Hv2f0fo6RTq5BTzGI 1mE1tTr/xcfSD9rW7LrLyBSzihABpuF44lD7Hws/xqQ== 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 V-3NtuqiHsk2 for ; Thu, 20 Jul 2023 16:42:38 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R65mG1s24zBHXhQ; Thu, 20 Jul 2023 16:42:38 +0800 (CST) MIME-Version: 1.0 Date: Thu, 20 Jul 2023 16:42:38 +0800 From: sunran001@208suo.com To: nm@ti.com, kristo@kernel.org, ssantosh@kernel.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH] clk: keystone: sci-clk: fix application of sizeof to pointer In-Reply-To: <20230720074906.3373-1-xujianghui@cdjrlc.com> References: <20230720074906.3373-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <3ad9c41575c274137001916c896bf2b6@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/clk/keystone/sci-clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/keystone/sci-clk.c b/drivers/clk/keystone/sci-clk.c index 6c1df4f11536..2c68c1e09d1f 100644 --- a/drivers/clk/keystone/sci-clk.c +++ b/drivers/clk/keystone/sci-clk.c @@ -389,7 +389,7 @@ static struct clk_hw *sci_clk_get(struct of_phandle_args *clkspec, void *data) key.clk_id = clkspec->args[1]; clk = bsearch(&key, provider->clocks, provider->num_clocks, - sizeof(clk), _cmp_sci_clk); + sizeof(**clk), _cmp_sci_clk); if (!clk) return ERR_PTR(-ENODEV);