Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1066676pxb; Thu, 19 Aug 2021 19:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ8DERXaWPTaIORYp9xLqJHXzokpggU3Dr/M0T0fQPzUHt/fbkAEXijdVCR/ZGpWiL8v20 X-Received: by 2002:a92:c60d:: with SMTP id p13mr12114512ilm.8.1629426238387; Thu, 19 Aug 2021 19:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629426238; cv=none; d=google.com; s=arc-20160816; b=hfvlGdlcuYOPCHRmBnue8NHe7t+yCLDqdDmvecPYsV956LkB6RGhUVOegBSoaBVgy3 Be324ALVcIrK96wqMVNjIUlQTiLi+tYi7/3/BKfYcKNvAgvQAu0sURAgp4n3+3tY4dc7 wg/1xdSzqlEHCsdiEwD370IMdADJaK+WpetEgj6hEhakpXL0u8NixLYEtPBuKTyE8uT0 OUpPMwI5UVZ5UDDtSSuxwe9wIyy9lRDhTtMVX4gFUFqtDr157eyDZf9iQHqikWfmdpPg glgHGCHsX4KrupV+o0gNGeAIIaqdME0HsyZ+UR/5+FeWPtkYgOyvJQn2BuI4ygH14quk 7nmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1CiQkEiqhrAGOxxC4zUbfLasMJ5pR76RadgCPPnlco4=; b=EbMJWRG9xtbTTgCdY0ZTskzvZfOFmyeEkyc4AhnHrbYwsyJL4bT5AYiR2+wHafaFv8 4UJss8DkKVjAcxLEwgT7V8uB2eCiXQHlhyqcl0xubwTYAWB1KlsAMM/OGY+wY9zDdqGn Md12+ISxSF+XCLg9FsLjyNgvFdhT1w0kR1+nNRas5zBtGDTzEhkEc0ar55ilqepgOOO8 GnZm121SLObsBJMDCub48NsQoIbom5qpcVw/3UBfoM/6jXET6n3IqsZ66abvXGrpv/sK z5+T2ZKfLX3tbpUfHMhgT3bQr2+TDpG6VqyDfXhCcyY6yR9CRItDkpkp7OUOHXZnpIs9 2nZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q3Hg0+Js; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si5185089ilm.28.2021.08.19.19.23.46; Thu, 19 Aug 2021 19:23:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q3Hg0+Js; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237269AbhHTCVu (ORCPT + 99 others); Thu, 19 Aug 2021 22:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230432AbhHTCVr (ORCPT ); Thu, 19 Aug 2021 22:21:47 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20CB6C061575; Thu, 19 Aug 2021 19:21:10 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id p22so9388100qki.10; Thu, 19 Aug 2021 19:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1CiQkEiqhrAGOxxC4zUbfLasMJ5pR76RadgCPPnlco4=; b=Q3Hg0+Js+xVezU0UQeaoEV37fFUpiU+3dPKlwTn+UQyWkmeklObm9uFQXZa3iUsaD0 eiBDHLKTSEgtKiSA14VMOi8javbKyhRDxNYi/mnyG89nAaFYBHj7QYka1RS+4JLWcicr 3oawdUNBMA4WD3ptbPL6BUW3Kq/UWBEiwY9aOcIQsTANwcTS3ieX3N5x0XCd7eoWDBbS 6qgtG+UMhR1/jZOE0SRtosJxScYKsYyA8Bkdj4EB3fzVV6MfES3VkTNjdI/aFoSlfVi5 23fmQzD8Vx9ADmc3g66GZl3lDWy2lZtOVW0pBxgXpRCrppOlyMSj7t4lpuixMqbwkSLt oNxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1CiQkEiqhrAGOxxC4zUbfLasMJ5pR76RadgCPPnlco4=; b=H1VjQW/J+D2DRwCyE8A8+5Iq1mJrYoY0LFaEp9w5o77fFf+UtQ/GOJpbyJdGqy/1yy OqGWfw7k42SBuBhU+pyWA7Uf0c14cwTcX7U60o20AvNMEFbf2l47QlouvgGEtJ2F5YrZ +JwB5GFy5ngrwX5Ckcc1r7tQzzqJ0koIzJc4tzoR5TukXRZfGbH3sd3niLj3FPJNCE1q 5MXuQe8oOnEVyqUQPFpPO1zuiLZSpBrXZJS+HFOXVatUXmmSEjCbLtXp223fTPpZFrAs EKYHgvhiBJKE63Gqd3LQzsEkr8VZ5aQigzr3exUqvTq9adzLa0Uub2dj2ulm/LmRWD8f gRyQ== X-Gm-Message-State: AOAM533iVrzFyeqnPvstd2BaPEAJhLmomG4ndS2FQpQ1IAQU4t+QSymQ bqkYIEEXykz7XmjCsxaWZIo= X-Received: by 2002:a05:620a:81c:: with SMTP id s28mr6555355qks.45.1629426069357; Thu, 19 Aug 2021 19:21:09 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id n124sm2601834qkf.119.2021.08.19.19.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 19:21:08 -0700 (PDT) From: jing yangyang X-Google-Original-From: jing yangyang To: Nishanth Menon Cc: Tero Kristo , Santosh Shilimkar , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, jing yangyang , Zeal Robot Subject: [PATCH linux-next] clk/keystone: fix application of sizeof to pointer Date: Thu, 19 Aug 2021 19:20:54 -0700 Message-Id: <84a6ba16686347099a3dab2e5161a930e792eb6e.1629198281.git.jing.yangyang@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sizeof when applied to a pointer typed expression gives the size of the pointer. ./drivers/clk/keystone/sci-clk.c:398:8-14: ERROR application of sizeof to pointer This issue was detected with the help of Coccinelle. Reported-by: Zeal Robot Signed-off-by: jing yangyang --- 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 7e1b136..010a61a 100644 --- a/drivers/clk/keystone/sci-clk.c +++ b/drivers/clk/keystone/sci-clk.c @@ -395,7 +395,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); -- 1.8.3.1