summaryrefslogtreecommitdiff
path: root/backport/compat/backport-4.7.c
diff options
context:
space:
mode:
Diffstat (limited to 'backport/compat/backport-4.7.c')
-rw-r--r--backport/compat/backport-4.7.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/backport/compat/backport-4.7.c b/backport/compat/backport-4.7.c
index 25a00235..b0647077 100644
--- a/backport/compat/backport-4.7.c
+++ b/backport/compat/backport-4.7.c
@@ -116,8 +116,12 @@ int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
}
EXPORT_SYMBOL_GPL(nla_put_64bit);
-/* below 3.18 we copied the entire devcoredump */
-#if LINUX_VERSION_IS_GEQ(3,18,0)
+/*
+ * Below 3.18 or if the kernel has devcoredump disabled, we copied the
+ * entire devcoredump, so no need to define these functions.
+ */
+#if LINUX_VERSION_IS_GEQ(3,18,0) && \
+ !defined(CPTCFG_BPAUTO_BUILD_WANT_DEV_COREDUMP)
#include <linux/devcoredump.h>
#include <linux/scatterlist.h>