diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-27 12:26:09 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-27 12:26:09 -0700 |
commit | 8f3f7598cb657b9ceb6dacb4b97a52811f25f991 (patch) | |
tree | 903b46a4d0e4e717c0963be0e15d7b30226337fe /drivers/base | |
parent | de5f4fbe7bd20a5c464c3b0101ee3b8486f40189 (diff) | |
parent | 542440fd7b30983cae23e32bd22f69a076ec7ef4 (diff) | |
download | lwn-8f3f7598cb657b9ceb6dacb4b97a52811f25f991.tar.gz lwn-8f3f7598cb657b9ceb6dacb4b97a52811f25f991.zip |
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
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regcache-maple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache-maple.c b/drivers/base/regmap/regcache-maple.c index f0df2da6d522..2dea9d259c49 100644 --- a/drivers/base/regmap/regcache-maple.c +++ b/drivers/base/regmap/regcache-maple.c @@ -110,7 +110,8 @@ static int regcache_maple_drop(struct regmap *map, unsigned int min, struct maple_tree *mt = map->cache; MA_STATE(mas, mt, min, max); unsigned long *entry, *lower, *upper; - unsigned long lower_index, lower_last; + /* initialized to work around false-positive -Wuninitialized warning */ + unsigned long lower_index = 0, lower_last = 0; unsigned long upper_index, upper_last; int ret = 0; |