regmap: Fix for v6.11
Arnd sent a workaround for a false positive warning which was showing up with GCC 14.1. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmajjeoACgkQJNaLcl1U h9BI3wf8CIpA+LOjtuXnfIGgKxjBeDYVz4ZRCVsgyaAQdQfARP9YvxoqBX8Vkoge EtpNbVX2hEB5iGshgFDdd1PBf/iaD37Yx6bqGQ98hwI22BI8io9NfjT6eibvpmj8 y+yZCDN+FrW1tWpayB5nccj1QXMapyU5XIwYu7W6L2a7oSOfpPP/WGbezDEKYjPl BWsW9l18pZlaL8dhDUfNcekTR9+7/HUT7cTzUp8I0/PtJNTasfxy+VfvLxheem99 dwuSFXb9+elYq8P2exuIB9IiE+7Kzj5DT6kogRSyOusd07+xe2sO1mXjN7s6J017 Xv8hXRsa9/Unjn28QEtxTA/AyqlEZg== =MCkH -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
8f3f7598cb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user