Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1652702ioo; Sun, 22 May 2022 23:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Y9eu1YNJefjU9FNVurqFCboSEkXH7aaOm+QeX15km/4G1MbY4i6DUfDl4NG1hX3qNarE X-Received: by 2002:a63:43c2:0:b0:3c1:829a:5602 with SMTP id q185-20020a6343c2000000b003c1829a5602mr19321474pga.252.1653285972249; Sun, 22 May 2022 23:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285972; cv=none; d=google.com; s=arc-20160816; b=N0upNQ7yGnXc3/pzBEw8bR4WDQxK6UpI6/I2uVnuNjzyfsmnrmtieqQk3/BnplYSc4 mEcpBkMtZSkiHWutGBC933aEa/3us0eAicbD+PDEkH9H/m5eTIMIIeCDoe1yGWoSkaEr ZyWa/ST8Y2qJBWJsmbuar92ZpsqxZvPY2OimKY1ugbTFexxHZnGCNpyLV/osFXqU4Y82 8sInYCgUAMnl+sMCJcgNgUg1gmnAJSRRwLPTF2dEJgoi7/qFH1Vp2+CB4p179F/YU6F2 5sA8CQwZY80sdxioQqnr4luuPANEtQ3t8fHGEj3GWgTzcg7c3ruUc8QYTYL6CiaZZnuC rnYQ== 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; bh=KacQUBQ8ZdJbnl4gTh1IaLYvo9iRA1K0uWW77yT37OM=; b=u5oV+koOp2Pa53UeVGClXj6eO2pRChCEzNXmCdIN6X+H3oqtFdxWTxA20k4xi7rafa ni3xYcRuig1RqPeBNWNoYcRpSJ3ua8e9nTdWynMIqLIJvz0KZUhzJTe09SPDuCrwUDZL 396XXpsSg0ydMH9TJEV/39RqkpKhbslegW8QeP+/u1+84EDt4YFZ3vQ3XdNjb4cW4WsU aYQthFa/wR8AOENkY/54FyPqsJbbSdmQVzww+Lv20YLoqQGVdI2Id5+S21hu9pX6KGvA u3y336jiC4aP9jy3cYYOYpRjb2/BaI1rTrO8gtXXZ4xR0GyZc630ZvKXoKpSNzzjinix wkow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y27-20020aa79afb000000b0050759c7a6f2si11929865pfp.376.2022.05.22.23.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:06:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6D3D62C667; Sun, 22 May 2022 22:57:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351772AbiETVVN (ORCPT + 99 others); Fri, 20 May 2022 17:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346297AbiETVVH (ORCPT ); Fri, 20 May 2022 17:21:07 -0400 Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3A834A3DF for ; Fri, 20 May 2022 14:21:04 -0700 (PDT) Received: from pop-os.home ([86.243.180.246]) by smtp.orange.fr with ESMTPA id sA3Pn0Q162ovCsA3PnypMs; Fri, 20 May 2022 23:21:02 +0200 X-ME-Helo: pop-os.home X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Fri, 20 May 2022 23:21:02 +0200 X-ME-IP: 86.243.180.246 From: Christophe JAILLET To: Michael Turquette , Stephen Boyd , Nicolas Saenz Julienne , Broadcom internal kernel review list Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] clk: bcm: rpi: Use correct order for the parameters of devm_kcalloc() Date: Fri, 20 May 2022 23:20:58 +0200 Message-Id: <49d726d11964ca0e3757bdb5659e3b3eaa1572b5.1653081643.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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 --- 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 9d09621549b9..73518009a0f2 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -345,7 +345,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.34.1