From dd32060f6a46caff6f686591cace9d189485f1d4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 12 Feb 2018 14:40:30 +0100 Subject: [PATCH] build: remove support for Linux 3.8 --- configure.ac | 2 +- doc/changelog.txt | 2 +- extensions/compat_xtables.h | 11 ++--------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index c4a660c..8aa9cd2 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ if test -n "$kbuilddir"; then echo "WARNING: That kernel version is not officially supported yet. Continue at own luck."; elif test "$kmajor" -eq 4 -a "$kminor" -le 10; then :; - elif test "$kmajor" -eq 3 -a "$kminor" -ge 8; then + elif test "$kmajor" -eq 3 -a "$kminor" -ge 9; then :; else echo "WARNING: That kernel version is not officially supported."; diff --git a/doc/changelog.txt b/doc/changelog.txt index da4d57d..68e4b44 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -4,7 +4,7 @@ HEAD Enhancements: - support for Linux up to 4.15 Changes: -- remove support for Linux 3.7 +- remove support for Linux 3.7--3.8 v2.14 (2017-11-22) diff --git a/extensions/compat_xtables.h b/extensions/compat_xtables.h index 1ab45a9..a96c550 100644 --- a/extensions/compat_xtables.h +++ b/extensions/compat_xtables.h @@ -8,8 +8,8 @@ #define DEBUGP Use__pr_debug__instead -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0) -# warning Kernels below 3.8 not supported. +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) +# warning Kernels below 3.9 not supported. #endif #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) @@ -42,13 +42,6 @@ # define NIPQUAD_FMT "%hhu.%hhu.%hhu.%hhu" #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) -static inline struct inode *file_inode(struct file *f) -{ - return f->f_path.dentry->d_inode; -} -#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) static inline void proc_set_user(struct proc_dir_entry *de, typeof(de->uid) uid, typeof(de->gid) gid)