summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/u64_stats_sync.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/u64_stats_sync.h')
-rw-r--r--kernel/include/linux/u64_stats_sync.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/include/linux/u64_stats_sync.h b/kernel/include/linux/u64_stats_sync.h
index 4b4439e75..df89c9bcb 100644
--- a/kernel/include/linux/u64_stats_sync.h
+++ b/kernel/include/linux/u64_stats_sync.h
@@ -68,11 +68,12 @@ struct u64_stats_sync {
};
+static inline void u64_stats_init(struct u64_stats_sync *syncp)
+{
#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)
+ seqcount_init(&syncp->seq);
#endif
+}
static inline void u64_stats_update_begin(struct u64_stats_sync *syncp)
{