summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-06-26 08:04:23 +0200
committerMark Brown <broonie@kernel.org>2026-06-29 19:15:50 +0100
commitdffd32eb2b0e714a8ae23f98518ad7152cb06369 (patch)
tree762f30fe3426606756609956bc5f14479845cbac /drivers
parente427e1832bb0c440b47af2553c3b6a8674f412a4 (diff)
downloadlinux-next-dffd32eb2b0e714a8ae23f98518ad7152cb06369.tar.gz
linux-next-dffd32eb2b0e714a8ae23f98518ad7152cb06369.zip
regmap: maple: Workaround for another false-positive compiler warning
Similar to the issue fixed in commit 542440fd7b30 ("regmap: maple: work around gcc-14.1 false-positive warning"), I see an uninitialized warning for upper_index and upper_last. Happens with arc-linux-gnu-gcc (Debian 15.3.0-1) 15.3.0 on an allmodconfig for ARCH=arc. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20260626060427.2548578-2-u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/regmap/regcache-maple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache-maple.c b/drivers/base/regmap/regcache-maple.c
index 9d2f3a23ffb2..e46fe5c32b7f 100644
--- a/drivers/base/regmap/regcache-maple.c
+++ b/drivers/base/regmap/regcache-maple.c
@@ -112,7 +112,7 @@ static int regcache_maple_drop(struct regmap *map, unsigned int min,
unsigned long *entry, *lower, *upper;
/* initialized to work around false-positive -Wuninitialized warning */
unsigned long lower_index = 0, lower_last = 0;
- unsigned long upper_index, upper_last;
+ unsigned long upper_index = 0, upper_last = 0;
int ret = 0;
lower = NULL;