Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10290498rwp; Thu, 20 Jul 2023 18:33:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlER4rDk/mby9LysO9NsqmvOvFiqVdewz9s/MwMr8EaxoW+idqfqqv7+oFDuvQB/dj9jhztF X-Received: by 2002:aa7:cb4f:0:b0:51e:28e6:3838 with SMTP id w15-20020aa7cb4f000000b0051e28e63838mr332200edt.17.1689903183232; Thu, 20 Jul 2023 18:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689903183; cv=none; d=google.com; s=arc-20160816; b=vHV/iL3BT1eKfo+Twajjt2AkaN57PjdKaiKcvzHUNFcQR0ugby3S2Ks1yZAwjKvF0L U7GOHbligKptGzh/H72pLw86kAb0owi6XG++63zI9iFTXW8zOSJzuCoEscsD/bwoY7nN 81HmIvCq2oBj5U9Bz0bZoMIBmAPAmG9ZcgOxIt/i4WR5qZJJMc7WYkXWSU6ySpuruyu5 fi6sKLh2idVIzr0tDF+PFpp76jUrhdzEFi0H3JhHVuK4p3GfHuT3dMFqWjF7O5xzOJM6 rSNHlY2L2lmt6Yi5pv90m12xKJ8AvDNNFVfQxGUnI0rBCdlbou2Z7y7lbRLuws2JyaCQ cAyQ== 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=RjF9cQnCL/iYuuBDxneNSuDdC9YKTuKGwQ7qITACP9I=; fh=KmDAEVyHK4w8tKpBYMW1uwO+/f55ae9OT9MUcRSPH5U=; b=rkgs2AGM8gYeQv/S0paiXN5joBlv5leATDGzJ7Obwots3YsE67enhGmiCeAmOB7k5h d7HZ5AYonjN8Py7lhsQyPUb+iMAmPUdZXpaG0QkwGcmMVRoq9NCHLjHuwAPH2llmB5DA 6/qngZMXIYzGPgbn1NlAUyVVK4Se7Y8OC7TaSvnqXngUDynlAgaCRGKgC0e+1Ckcp9rs Ek9jQPvrlczungzPaxVCEHIWKfKgnn/8ZKxUxpG2Nlt1RZ+DtfKwlreBmkC6TDgzfapK 8rwfFyBhuxN9Hf8iTdYBrYNf13NGnSouf3V/MbYZ9JoLCH4+eeVuuvwShiJdZKSjlC0u 1+rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@208.org header.s=dkim header.b=1Dy5cVJe; 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 h12-20020aa7c60c000000b00521ce86bb68si1689949edq.473.2023.07.20.18.32.37; Thu, 20 Jul 2023 18:33:03 -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=temperror (no key for signature) header.i=@208.org header.s=dkim header.b=1Dy5cVJe; 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 S229555AbjGUBOb (ORCPT + 99 others); Thu, 20 Jul 2023 21:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjGUBOa (ORCPT ); Thu, 20 Jul 2023 21:14:30 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17C80CC for ; Thu, 20 Jul 2023 18:14:28 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R6Wmb4l70zBRDt5 for ; Fri, 21 Jul 2023 09:14:23 +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=1689902063; x=1692494064; bh=4GBqDFrt1FMfDd6HMrt3eR5rmJe B74SGP0SN71oVcpI=; b=1Dy5cVJekOXn66SldozBuzHJVOZrTe9Cw/8E7mbh47b 0r3RodRbc4uzGg+BSa5n2fP9BbEVx9Tm78vA1X/8t23xrwSQyHu7+YN30VKq51Vj uKGL7SdOwruBbn2ubwCzTPcnmQWeUbxmFZywkieMvOi5HUQbqbVLWEow8R+Y8XOx 7Hip5HhuKBGtf4tS7uAGqC039A1hPxZeJCX07KPl8i759FcBatSNkHrAz7ulPHle V4dYYwETJCJ5QqqMhzXVS9CWWJh+86RG4lsEryKOGpzunxauhIi0vl1rRwIY8MXZ 3b2n4TjLuOyv9R3/L1DHjdDTaGLzzftweNcHkXE4f8w== 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 Fsa7ey6Yln53 for ; Fri, 21 Jul 2023 09:14:23 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R6Wmb2LKTzBRDsm; Fri, 21 Jul 2023 09:14:23 +0800 (CST) MIME-Version: 1.0 Date: Fri, 21 Jul 2023 09:14:19 +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: <20230721011303.4303-1-xujianghui@cdjrlc.com> References: <20230721011303.4303-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <8cfd376d48d63670882b8079c411d605@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,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 ./drivers/clk/keystone/sci-clk.c:390:8-14: 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);