Files
linux/include/linux
Petr Tesarik 38a15d0a50 u64_stats: fix u64_stats_init() for lockdep when used repeatedly in one file
Fix bogus lockdep warnings if multiple u64_stats_sync variables are
initialized in the same file.

With CONFIG_LOCKDEP, seqcount_init() is a macro which declares:

	static struct lock_class_key __key;

Since u64_stats_init() is a function (albeit an inline one), all calls
within the same file end up using the same instance, effectively treating
them all as a single lock-class.

Fixes: 9464ca6500 ("net: make u64_stats_init() a function")
Closes: https://lore.kernel.org/netdev/ea1567d9-ce66-45e6-8168-ac40a47d1821@roeck-us.net/
Signed-off-by: Petr Tesarik <petr@tesarici.cz>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240404075740.30682-1-petr@tesarici.cz
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-05 22:31:37 -07:00
..
2024-03-07 21:52:03 +00:00
2024-01-18 15:21:00 -08:00
2024-03-18 10:32:44 +01:00
2024-03-11 15:37:23 -07:00
2024-03-07 20:37:04 +00:00
2024-02-20 14:22:55 -05:00
2024-02-20 14:22:51 -05:00
2024-03-12 23:08:29 -07:00
2024-02-25 12:05:08 +01:00
2024-01-08 09:36:55 +09:00
2024-03-04 17:01:18 -08:00
2024-03-07 09:36:08 +01:00
2024-02-28 19:36:39 -08:00
2024-03-10 14:38:04 -07:00
2024-02-15 23:43:48 -05:00
2024-02-14 11:14:40 +01:00
2024-02-17 16:20:41 +01:00
2024-03-13 18:38:13 -04:00
2024-03-06 13:04:18 -08:00
2024-03-01 08:44:54 +00:00
2024-03-09 09:14:51 -05:00
2024-03-09 09:14:50 -05:00
2024-03-26 11:07:20 -07:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-01-09 15:00:09 +01:00
2024-03-08 12:05:10 +01:00
2024-02-15 12:17:28 -05:00
2024-03-03 15:06:58 -08:00
2024-01-21 18:09:30 +00:00
2024-02-21 16:00:03 -08:00
2024-02-20 13:36:34 +01:00
2024-03-04 20:46:18 -08:00
2024-03-04 17:25:09 +01:00
2024-02-18 18:59:59 +01:00
2024-03-06 10:52:12 +01:00
2024-02-09 12:07:48 +00:00