From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6574C1A316E for ; Sat, 9 May 2026 18:49:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778352595; cv=none; b=skBFN4VUmi85aymL7Hy8avTCyogBhaPV+VoSKfrkoma3k4Fwg/RbRZ23KWyDRP6EnIUIxrdY0PsiuzZz3L2VVss2uWsEt5TKKG1hwMnV5znYpOydJF95Lo0rBaYff7OEZQ7sqgpwOoX5xUKaiLdHFKk9QZVz0Xk4pg7VF8HcVbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778352595; c=relaxed/simple; bh=6XSQZ+zE7OvBYItJ+fT1jHCTZEPNcigVOgdTtn6IgEE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KoVUCxYpuKJOCZnLSLtbhC6i2IM9PXKeKFGg6UDyUqXNaOhw9KoaKndASLtrI0VR8w7dV6Dk5AUev/elQQAt5ANZx55igNAdDvZ6+5beXSUXn+IcMscyVtBRzdYOXLlb8nsqq3LgM4WEjN70xW1+1qFsKDriNMOpNH/x+2/XNak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Z5T8Z4gi; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Z5T8Z4gi" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4891f6b6388so822635e9.0 for ; Sat, 09 May 2026 11:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778352593; x=1778957393; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6XSQZ+zE7OvBYItJ+fT1jHCTZEPNcigVOgdTtn6IgEE=; b=Z5T8Z4gid38N+U3COZacthkKiS9mQDnSeYXHekmSe32uKRXf5jIilG+G9EoD93mOs3 Yotwj287xsnvunCCBlQTopG0BRNlK6h5xUi5SJeCoXK2kRBMdbJ1ddrI4ITkAQKQ6LXD SGFPWi4MHq30cOTzfZJI5LROCoZOr0dd5OVBnqzXgZVUDFFcKyWd6UkBE6MMqEBnEd9t EbaOlrQXI5ePcQkrUUPb/9A1HkhlY3ngrddzL4WKZu3wtb/zKV2g/c4+JX7W9M4VUtFZ P/FTZp0TRSaomTQZTrRE38rThMRuQQIz9WGU5kO0E4xqaXd9luA2X36TYOzNGoU6Yn5B f8/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778352593; x=1778957393; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6XSQZ+zE7OvBYItJ+fT1jHCTZEPNcigVOgdTtn6IgEE=; b=AOIKIqKWxvaUOMvBom2rsmCRqu/WWgOLb+HBIpKqcXrKkfMKaolJsnm5NTvDLYqPYE vPWSGn4+ldT8PTgw6SVdpAEgb2dc19mgaOlMYc8L6AmL55fmQZeYlIzdugDZvdGg5W0U rSlaWJCRY07Zz4ovKHhW2ADgYqWhCaRpDTrxPCBmXpWWbvb5iLGmsIQtGZJS5JThqdJI TU4IMGwmIey9lJERVC6jWVzJahXUNeLYXi480R2109jZgQkyo4woAztHH54wqbZxt6N7 6dj/mGiUppN3rG8nghbU6KYPVxqnsgpshNcqFyuSwHMiYQ67oV2m9cIvI+oBYMApJ7Il fZRA== X-Forwarded-Encrypted: i=1; AFNElJ/GxbbFPdad4x+Tjgi6+vQkld1QyhddlvmuDJSa7C+LFLeA3mxH0BQv5pNOB5X7/fbdNtTi1zsmWa71EFY=@vger.kernel.org X-Gm-Message-State: AOJu0Yxzr5AhwE5Ke1d15BwYpq+3gU7YcrnMkD+X3SfjqAK8bse6b20/ p0DB46N7G1bLeMT2x/Yk++X/oeo6Woyp7AxgWIIJ8suzUs9vu39xPsTV X-Gm-Gg: Acq92OEKWI49Ne1rBzQaqo3SnztcAd85/IKQTVBHfxbh397AGuU9GE/wt1pcOHncMIv eDR9F8pbWyVB1B2oHiAoc+xoXFuzu9TG2Vb4uIhooZsx9fxyiBQvcc/5ld2hrgfAlUZoYOdX1oH f2U8cqlOgOs9+3/XksDBVKbm2ihRqqSPryEskuZZQ/+kI7naquAcn4QlJFAm5H5dMKSf03LFDW8 lokyjMrBFpRxiuxiaYvu4jN7rFOPdF+/7zfVZZkL9ebPsGbReWA8OXSOJvkYUwf2drZ9eV0SP9E n8D6y/y16GMv+7X8VFuLCefCV+6foBFh7xjZNvnRdyxlFDOXth3fDqu/jKJ8A5rv9ZLSoi0ZEYz HIDLS3MlIX0u4fm3J9T9JK0Iirbk/fol82OvuMDgjH7XfIQhGnXXz09C682RmxZa/WnMaAs5pIY r+VeHh5De22x3192WH8HKxk/eRBn09f2XGeEbTeMErAySG X-Received: by 2002:a05:600c:4f82:b0:489:1dc6:d6e with SMTP id 5b1f17b1804b1-48e5325025fmr130325175e9.1.1778352592718; Sat, 09 May 2026 11:49:52 -0700 (PDT) Received: from localhost.localdomain ([82.215.118.79]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e702e5630sm60853005e9.8.2026.05.09.11.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 11:49:52 -0700 (PDT) From: Stepan Ionichev To: nm@ti.com Cc: sboyd@kernel.org, mturquette@baylibre.com, afd@ti.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sozdayvek@gmail.com Subject: Re: [PATCH] clk: keystone: sci-clk: fix application of sizeof to pointer Date: Sat, 9 May 2026 16:34:25 +0500 Message-Id: <20260509113425.25402-1-sozdayvek@gmail.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20260508152321.3683799-1-nm@ti.com> References: <20260508152321.3683799-1-nm@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In sci_clk_get(), 'clk' is declared as 'struct sci_clk **', so sizeof(clk) is sizeof(struct sci_clk **) which is the size of a pointer rather than the size of an array element. provider->clocks is an array of 'struct sci_clk *', so the canonical size argument to bsearch() is sizeof(*clk) (i.e. sizeof(struct sci_clk *)). The two values are equal on every supported architecture, so this is correctness/idiom, not a runtime fix, but the new form matches the rest of the bsearch() callers in the tree and silences the Coccinelle warning the script flagged. Reviewed-by: Stepan Ionichev Stepan