Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4448030rwb; Tue, 6 Sep 2022 07:41:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7HRibKwDakIge1JpexaDd+Ocrl1rjxq5Vp7ut1UInenaH+F+BkmWdJtZRkHGuiijECs+lI X-Received: by 2002:a17:90a:d150:b0:1fd:9336:5db3 with SMTP id t16-20020a17090ad15000b001fd93365db3mr25312769pjw.242.1662475264365; Tue, 06 Sep 2022 07:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662475264; cv=none; d=google.com; s=arc-20160816; b=DedK5JFGEbswhwsgls3dXSv2A3ijUfNmiRvA/PqBZKAXatLfkWXjY/xz6+tGEcGS16 rLa4OfodkCakHcJyp6ii4tRv3U+Uz4pLOoUu3nEDMBqnHlK7h2hYoo44+aSnS9Kupm+Z tWAuuKKbhgSqqszX87rRbiJYvW2ckahkKyXAU8KYWajJZFnVGa5FYd5hl9LJstNN9r1u pidcz/1eymCgt4+AlzaxiwvHp/91qYu2nHuq7GV/KURbsX0Twt1UyM1dg7LuKEyAVGPA 5z+qDHQzrUDYpB56EktnsgMI0T+0smHujgEgFbs67PE8tXaA2PUUtWbgHMrfrH/r2Pls vyHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yvXqGZ6KINjE4O48g4lKnXwSo/Bq6GPUdu5nOiQFBs8=; b=u6c1tc5zM4uW8UH2EEpJPzYgct5SxwfKcpcMPmwvJ0ejOiQgRrNMW3Xa12ix1GhB5X H6cdT5T/olG1ptpyigTbOjuwKw3WBmPOqdR7pVOnarCxwuQEB+v/HggcVv91klKdcIw8 2GmKexY99yK9NlFBH8WArEx+KCB9G9PDnLvcHy0homvvXc95Gpa3tUHupv+/yRNrefSL 2Vfcq5SOSTpkXPPiamQLi11HpQGHqj/JxwfTYM4+k6unxg8OlK1T3YFiEdFO/bzugDo/ h5IB7xtsHvncw9zXRhDgOTC53yakrt2LlHYhCOHNZXAdm+QipFERxRrAsSrsC04z+QuY 8ivg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uDoaz+OK; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k10-20020a170902d58a00b00176afa8c818si5676157plh.470.2022.09.06.07.40.37; Tue, 06 Sep 2022 07:41:04 -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=@linuxfoundation.org header.s=korg header.b=uDoaz+OK; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240752AbiIFNgJ (ORCPT + 99 others); Tue, 6 Sep 2022 09:36:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239964AbiIFNfR (ORCPT ); Tue, 6 Sep 2022 09:35:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E2327A50B; Tue, 6 Sep 2022 06:33:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C3C20B81632; Tue, 6 Sep 2022 13:33:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CAC8C433C1; Tue, 6 Sep 2022 13:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471224; bh=888wiW5WJHndm8oOh56TPRqYKzVi0reC38jUgLxtCc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uDoaz+OK4kWkUprKVykfXJxURWWUqx4yTtC8SrS54g0WdZnr8sUjwOb8DIERaH39t bqJ71ydR2uzGCNFWBEdDv9aR7z7rg1kvva3aVbelp5LaG9qGFQXdS20Nd0r90gDb+g Kyf7i631RZd6SAI1skOAVSwNJXEwSCyhQ6vqjESY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Stephen Boyd , Sasha Levin Subject: [PATCH 5.10 39/80] clk: bcm: rpi: Use correct order for the parameters of devm_kcalloc() Date: Tue, 6 Sep 2022 15:30:36 +0200 Message-Id: <20220906132818.631653732@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132816.936069583@linuxfoundation.org> References: <20220906132816.936069583@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 From: Christophe JAILLET [ Upstream commit b7fa6242f3e035308a76284560e4f918dad9b017 ] We should have 'n', then 'size', not the opposite. This is harmless because the 2 values are just multiplied, but having the correct order silence a (unpublished yet) smatch warning. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/49d726d11964ca0e3757bdb5659e3b3eaa1572b5.1653081643.git.christophe.jaillet@wanadoo.fr Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/bcm/clk-raspberrypi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index 2c12bd5ac1388..ff87305cbe9d9 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -252,7 +252,7 @@ static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi, int ret; clks = devm_kcalloc(rpi->dev, - sizeof(*clks), RPI_FIRMWARE_NUM_CLK_ID, + RPI_FIRMWARE_NUM_CLK_ID, sizeof(*clks), GFP_KERNEL); if (!clks) return -ENOMEM; -- 2.35.1