Skip to content

Commit 8f3f759

Browse files
committed
Merge tag 'regmap-fix-v6.11-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
Pull regmap fix from Mark Brown: "Arnd sent a workaround for a false positive warning which was showing up with GCC 14.1" * tag 'regmap-fix-v6.11-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap: regmap: maple: work around gcc-14.1 false-positive warning
2 parents de5f4fb + 542440f commit 8f3f759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/base/regmap/regcache-maple.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ static int regcache_maple_drop(struct regmap *map, unsigned int min,
110110
struct maple_tree *mt = map->cache;
111111
MA_STATE(mas, mt, min, max);
112112
unsigned long *entry, *lower, *upper;
113-
unsigned long lower_index, lower_last;
113+
/* initialized to work around false-positive -Wuninitialized warning */
114+
unsigned long lower_index = 0, lower_last = 0;
114115
unsigned long upper_index, upper_last;
115116
int ret = 0;
116117

0 commit comments

Comments
 (0)