projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: Explicitly initialize u64_stats_sync structures for lockdep
[deliverable/linux.git]
/
include
/
linux
/
u64_stats_sync.h
diff --git
a/include/linux/u64_stats_sync.h
b/include/linux/u64_stats_sync.h
index 8da8c4e87da3018323177000d46a5e42b19bf23f..7bfabd20204c150afa40a7249932519c0e770267 100644
(file)
--- a/
include/linux/u64_stats_sync.h
+++ b/
include/linux/u64_stats_sync.h
@@
-67,6
+67,13
@@
struct u64_stats_sync {
#endif
};
#endif
};
+
+#if BITS_PER_LONG == 32 && defined(CONFIG_SMP)
+# define u64_stats_init(syncp) seqcount_init(syncp.seq)
+#else
+# define u64_stats_init(syncp) do { } while (0)
+#endif
+
static inline void u64_stats_update_begin(struct u64_stats_sync *syncp)
{
#if BITS_PER_LONG==32 && defined(CONFIG_SMP)
static inline void u64_stats_update_begin(struct u64_stats_sync *syncp)
{
#if BITS_PER_LONG==32 && defined(CONFIG_SMP)
This page took
0.024495 seconds
and
5
git commands to generate.