build: remove support for Linux 2.6.39

This commit is contained in:
Jan Engelhardt
2012-10-16 03:10:56 +02:00
parent bcdd42f556
commit 78e47758c6
6 changed files with 5 additions and 13 deletions

View File

@@ -8,8 +8,8 @@
#define DEBUGP Use__pr_debug__instead
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
# warning Kernels below 2.6.39 not supported.
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)
# warning Kernels below 3.0 not supported.
#endif
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)

View File

@@ -150,9 +150,6 @@ static int condition_mt_check(const struct xt_mtchk_param *par)
var->refcount = 1;
var->enabled = false;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 29)
var->status_proc->owner = THIS_MODULE;
#endif
var->status_proc->data = var;
wmb();
var->status_proc->read_proc = condition_proc_read;

View File

@@ -128,9 +128,6 @@ q2_get_counter(const struct xt_quota_mtinfo2 *q)
if (p == NULL || IS_ERR(p))
goto out;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 29)
p->owner = THIS_MODULE;
#endif
p->data = e;
p->read_proc = quota_proc_read;
p->write_proc = quota_proc_write;