summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/u64_stats_sync.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport/backport-include/linux/u64_stats_sync.h')
-rw-r--r--backport/backport-include/linux/u64_stats_sync.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/backport/backport-include/linux/u64_stats_sync.h b/backport/backport-include/linux/u64_stats_sync.h
index 03023225..2c68d41e 100644
--- a/backport/backport-include/linux/u64_stats_sync.h
+++ b/backport/backport-include/linux/u64_stats_sync.h
@@ -2,6 +2,7 @@
#define __BACKPORT_LINUX_U64_STATS_SYNC_H
#include <linux/version.h>
+#include <generated/utsrelease.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
#include_next <linux/u64_stats_sync.h>
#else
@@ -113,7 +114,8 @@ static inline bool u64_stats_fetch_retry(const struct u64_stats_sync *syncp,
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) && \
+ !(LINUX_VERSION_CODE == KERNEL_VERSION(3,13,11) && UTS_UBUNTU_RELEASE_ABI > 30)
static inline unsigned int u64_stats_fetch_begin_irq(const struct u64_stats_sync *syncp)
{
#if BITS_PER_LONG==32 && defined(CONFIG_SMP)