From 73dfa4dfe56f748bd419dd79133d4a61e0917e74 Mon Sep 17 00:00:00 2001 From: Serhey Popovych Date: Thu, 5 Mar 2020 17:28:23 +0200 Subject: ip_set: Fix build on kernels without INIT_DEFERRABLE_WORK There was macro rename in kernel with commit 203b42f73174 ("workqueue: make deferrable delayed_work initializer names consistent") that renames INIT_DELAYED_WORK_DEFERRABLE() to INIT_DEFERRABLE_WORK(). Fixes: 33f08da28324 ("netfilter: ipset: Fix "INFO: rcu detected stall in hash_xxx" reports") Signed-off-by: Serhey Popovych Signed-off-by: Jozsef Kadlecsik --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a03401b..c707755 100644 --- a/configure.ac +++ b/configure.ac @@ -207,6 +207,16 @@ if test "$BUILDKMOD" == "yes" then dnl Check kernel incompatibilities... Ugly like hell +AC_MSG_CHECKING([kernel source for INIT_DEFERRABLE_WORK]) +if test -f $ksourcedir/include/linux/workqueue.h && \ + $GREP -q 'INIT_DEFERRABLE_WORK' $ksourcedir/include/linux/workqueue.h; then + AC_MSG_RESULT(yes) + AC_SUBST(HAVE_INIT_DEFERRABLE_WORK, define) +else + AC_MSG_RESULT(no) + AC_SUBST(HAVE_INIT_DEFERRABLE_WORK, undef) +fi + AC_MSG_CHECKING([kernel source for system_power_efficient_wq]) if test -f $ksourcedir/include/linux/workqueue.h && \ $GREP -q 'system_power_efficient_wq' $ksourcedir/include/linux/workqueue.h; then -- cgit v1.2.3