From: Michael Meffie Date: Wed, 4 May 2016 00:31:41 +0000 (-0400) Subject: afs: retire HAVE_LINUX_COMPLETION_H conditionals X-Git-Tag: openafs-stable-1_8_0pre1~88 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=b0e6dd60b79e17a391dfdf1bcbb91f972f5c46b9 afs: retire HAVE_LINUX_COMPLETION_H conditionals Now that support for linux 2.4 has been sunset, as of commit ccf353ede6ef5cce7c562993d1bea0d20844bdb7, it is no longer necessary to put conditional compilation checks around the linux wait-for-completion functions, which were introduced sometime during the linux 2.4 series and have been available since. Also, remove the remnant LINUX_COMPLETION_H_EXISTS autoconf macro, which was removed from use in commit ef8bd5a29b937a1211540aa60398ee966470a712. Change-Id: Iea974236f73eef8c567a897d6a473254edf95379 Reviewed-on: https://gerrit.openafs.org/12278 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/acinclude.m4 b/acinclude.m4 index 38da5e5..745f38e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -915,7 +915,6 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) dnl Check for header files AC_CHECK_LINUX_HEADER([config.h]) - AC_CHECK_LINUX_HEADER([completion.h]) AC_CHECK_LINUX_HEADER([exportfs.h]) AC_CHECK_LINUX_HEADER([freezer.h]) AC_CHECK_LINUX_HEADER([key-type.h]) diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index d796587..f071e20 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -41,7 +41,7 @@ #define AFS_MINBUFFERS 50 #endif -#if (defined(AFS_SUN5_ENV) || (defined(AFS_LINUX24_ENV) && defined(HAVE_LINUX_COMPLETION_H)) || defined(AFS_DARWIN80_ENV)) && !defined(UKERNEL) +#if (defined(AFS_SUN5_ENV) || defined(AFS_LINUX26_ENV) || defined(AFS_DARWIN80_ENV)) && !defined(UKERNEL) /* If AFS_DAEMONOP_ENV is defined, it indicates we run "daemon" AFS syscalls by * spawning a kernel thread to do the work, instead of running them in the * calling process. */ @@ -276,9 +276,9 @@ afs_DaemonOp(long parm, long parm2, long parm3, long parm4, long parm5, #endif -#if defined(AFS_LINUX24_ENV) && defined(HAVE_LINUX_COMPLETION_H) +#if defined(AFS_LINUX26_ENV) struct afsd_thread_info { -# if defined(AFS_LINUX26_ENV) && !defined(INIT_WORK_HAS_DATA) +# if !defined(INIT_WORK_HAS_DATA) struct work_struct tq; # endif unsigned long parm; diff --git a/src/afs/sysincludes.h b/src/afs/sysincludes.h index 573fccc..11bd482 100644 --- a/src/afs/sysincludes.h +++ b/src/afs/sysincludes.h @@ -165,9 +165,7 @@ struct xfs_inode_info { # include # endif # include -# ifdef HAVE_LINUX_COMPLETION_H -# include -# endif +# include # if defined(HAVE_LINUX_EXPORTFS_H) # include # endif diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 798a27b..c7c2581 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -25,20 +25,6 @@ read_lock(&tasklist_lock); []) ]) -AC_DEFUN([LINUX_COMPLETION_H_EXISTS], [ - AC_CHECK_LINUX_BUILD([for linux/completion.h], - [ac_cv_linux_completion_h_exists], -[#include -#include ], -[struct completion _c; -#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,8) -lose -#endif], - [HAVE_LINUX_COMPLETION_H] - [Define if your kernel has a usable linux/completion.h], - []) -]) - AC_DEFUN([LINUX_EXPORTS_INIT_MM], [ AC_CHECK_LINUX_BUILD([for exported init_mm],