From 5ef3a7c436dbe297240ef5f0bc31b1e9e9603835 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 12 Aug 2011 15:39:57 +0200 Subject: [PATCH] xt_CHECKSUM: abort build when the feature is already provided by mainline --- doc/changelog.txt | 1 + extensions/xt_CHECKSUM.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/doc/changelog.txt b/doc/changelog.txt index 1b43499..ccbb93e 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,6 +1,7 @@ HEAD ==== +- xt_CHECKSUM: abort build when the feature is already provided by mainline - xt_TARPIT: fix kernel warning about RTAX_HOPLIMIT being used - xt_TEE: abort build when the feature is already provided by mainline - xt_psd: restore functionality with UDP diff --git a/extensions/xt_CHECKSUM.c b/extensions/xt_CHECKSUM.c index 548860c..f565d82 100644 --- a/extensions/xt_CHECKSUM.c +++ b/extensions/xt_CHECKSUM.c @@ -12,6 +12,13 @@ #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) +# error ---------------------------------------------------------- +# error This module has been merged into, and is available in the +# error mainline since Linux kernel v2.6.36. Please use that. +# error ---------------------------------------------------------- +#endif + #include #include "xt_CHECKSUM.h" #include "compat_xtables.h"