Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9587887rwp; Thu, 20 Jul 2023 07:07:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlE41x5XoMlSrI937SsO9A7pWXUMyCqhjDGl63QuAYsH+e7XOQ9XxxS37ShPlw4nNKkXaqMl X-Received: by 2002:a2e:80cf:0:b0:2b3:3a2c:90a0 with SMTP id r15-20020a2e80cf000000b002b33a2c90a0mr2197537ljg.26.1689862043587; Thu, 20 Jul 2023 07:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689862043; cv=none; d=google.com; s=arc-20160816; b=CdOLIi7J/MPY0N7HZJBbBBv1V24gQJm3V76w2Nv7FFl1fe4S3NWw9LOPojuz0gw+d5 CZ2Ql8E6GQW28kGeA1K5/2U38orkaPYTDWQTFrwC86fdvc9/I/AJwy5/ltfnKoqpz5Lq n5G+H9KMVpOvlThyt5LjTs8QeV9fgH0Qz+8Ab7Wx0VzXsKc/Wgg49M5lAD8nGuxRK5cg Raqas/a1edp8Nn1xpcOSS5ce+X3iD3oVL16YHG9fHX3ZliO4Ux02drCK6ebnBUKew/T+ XK7LsnScgsqeywmluHOHBlHo709llCGLYOZWZ78Wf1nbS6U+/i+bhKTO8UbYZ4B1skwb 8Ipg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OlA7APl85CTRM4v1xEv5Mr7tHgBX2kPzkTIV6nm8RDk=; fh=YEpKkLl3n3C7QlxREPQwPe2wjqgaW6Q2bMLJ7/6hUaE=; b=IbDvozLminSYz0b30iXtDkzqLmBLjL33uMY/+s9nfVrB73GOGZr7tNNi/z/WIhQ16k PUHMeorNYChpBiw8vAdHJ7vR1RtD7NdSyuZmSYEwOTCZjaLVC4UGZ38OgPwOq0pCDwmt fgNkbGZgfzS5BmwGLh4ri23PZ3msmwNON8qOZoiGeh7BpUYx3tUo4s2rgn3XIiYDN+V5 OYGQjoKYVwSLBsF3BtCl5Za9tSBpV0/ltUgHt4skJ9rAJwpd/ar+zXS9jh/+Gl+eQwv7 ZlERib3m7ECyB+eBuM5cl5lx/B4BuE+X9hBnKDnq1TJIRejilzjrgoo7kDxd7P1y2AZH hCww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kAjy6Ske; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a1709066b8e00b00982a267a399si674114ejr.561.2023.07.20.07.06.49; Thu, 20 Jul 2023 07:07:23 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kAjy6Ske; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231679AbjGTNzc (ORCPT + 99 others); Thu, 20 Jul 2023 09:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbjGTNza (ORCPT ); Thu, 20 Jul 2023 09:55:30 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA57212C; Thu, 20 Jul 2023 06:55:27 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36KDt2rU031293; Thu, 20 Jul 2023 08:55:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689861302; bh=OlA7APl85CTRM4v1xEv5Mr7tHgBX2kPzkTIV6nm8RDk=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=kAjy6SkecAFSXmgLBXOD3MZJkLmrPcEc9YpnW1Vd5g+Lvfv8ezSZyk+obcqiG2SiE YtzshLQ8t/VjtWxhC1DO7RHH69zT6Tg3unaBZfpk4NkTQ+7MvststKpt5LTpDQyLD5 HjanjvU22uDS3TBsUOZpkcli7F0gZw4WCrIr0UA8= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36KDt2Cs010235 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Jul 2023 08:55:02 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 20 Jul 2023 08:55:01 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 20 Jul 2023 08:55:01 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36KDt11M125270; Thu, 20 Jul 2023 08:55:01 -0500 Date: Thu, 20 Jul 2023 08:55:01 -0500 From: Nishanth Menon To: CC: , , , , , Subject: Re: [PATCH] clk: keystone: sci-clk: fix application of sizeof to pointer Message-ID: <20230720135501.uxjb4oyn26ztmngv@bonelike> References: <20230720074906.3373-1-xujianghui@cdjrlc.com> <3ad9c41575c274137001916c896bf2b6@208suo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <3ad9c41575c274137001916c896bf2b6@208suo.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 16:42-20230720, sunran001@208suo.com wrote: > The coccinelle check report: > ./drivers/scsi/csiostor/csio_mb.c:1554:46-52: ERROR: application of > sizeof to pointer -ECONFUSED -> the report does'nt match the file here. did I miss something? > > 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); -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D