[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240616073721.5696-1-sikes@qlogo.org>
Date: Sun, 16 Jun 2024 00:36:57 -0700
From: Jason Sikes <sikes@...go.org>
To: thierry.reding@...il.com,
jonathanh@...dia.com,
kkartik@...dia.com,
rdunlap@...radead.org,
frank.li@...o.com
Cc: Jason Sikes <sikes@...go.org>,
linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] Fix warning in tegra_fuse_add_lookups
gcc 14.1.1 warns [-Wcalloc-transposed-args] when sizeof() is
used in the first, but not the second, of two size_t arguments.
Signed-off-by: Jason Sikes <sikes@...go.org>
---
drivers/soc/tegra/fuse/fuse-tegra.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c
index b6bfd6729df3..d27667283846 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra.c
@@ -127,8 +127,8 @@ static void tegra_fuse_print_sku_info(struct tegra_sku_info *tegra_sku_info)
static int tegra_fuse_add_lookups(struct tegra_fuse *fuse)
{
- fuse->lookups = kmemdup_array(fuse->soc->lookups, sizeof(*fuse->lookups),
- fuse->soc->num_lookups, GFP_KERNEL);
+ fuse->lookups = kmemdup_array(fuse->soc->lookups, fuse->soc->num_lookups,
+ sizeof(*fuse->lookups), GFP_KERNEL);
if (!fuse->lookups)
return -ENOMEM;
--
2.45.2
Powered by blists - more mailing lists