Whamcloud - gitweb
LU-2800 auotconf: remove linux key-type.h test 46/5546/4
authorJames Simmons <uja.ornl@gmail.com>
Mon, 28 Oct 2013 12:35:55 +0000 (08:35 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 15 Nov 2013 01:06:10 +0000 (01:06 +0000)
Since linux kernel version 2.6.24 key-type.h has
been available so we no longer need to test this.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I6ed82effb62a0dadabb8477e419c42e8540c91d9
Reviewed-on: http://review.whamcloud.com/5546
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Thomas Stibor <thomas@stibor.net>
Reviewed-by: Andrew Korty <ajk@iu.edu>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/autoconf/lustre-libcfs.m4
lustre/ptlrpc/gss/gss_keyring.c

index abc00db..09a9bdd 100644 (file)
@@ -119,15 +119,6 @@ LB_LINUX_TRY_COMPILE([
 ])
 ])
 
 ])
 ])
 
-AC_DEFUN([LIBCFS_HAVE_KEYTYPE_H],
-[LB_CHECK_FILE([$LINUX/include/linux/key-type.h], [
-        AC_DEFINE(HAVE_LINUX_KEYTYPE_H, 1,
-                [kernel has include/key-type.h])
-],[
-        AC_MSG_RESULT([no])
-])
-])
-
 #
 # RHEL6/2.6.32 want to have pointer to shrinker self pointer in handler function
 #
 #
 # RHEL6/2.6.32 want to have pointer to shrinker self pointer in handler function
 #
@@ -329,7 +320,6 @@ LIBCFS_CONFIG_PANIC_DUMPLOG
 LIBCFS_U64_LONG_LONG_LINUX
 # 2.6.24
 LIBCFS_SYSCTL_UNNUMBERED
 LIBCFS_U64_LONG_LONG_LINUX
 # 2.6.24
 LIBCFS_SYSCTL_UNNUMBERED
-LIBCFS_HAVE_KEYTYPE_H
 # 2.6.32
 LIBCFS_STACKTRACE_OPS_HAVE_WALK_STACK
 LC_SHRINKER_WANT_SHRINK_PTR
 # 2.6.32
 LIBCFS_STACKTRACE_OPS_HAVE_WALK_STACK
 LC_SHRINKER_WANT_SHRINK_PTR
index 14e7983..05a1b0f 100644 (file)
@@ -48,9 +48,7 @@
 #include <linux/crypto.h>
 #include <linux/key.h>
 #include <linux/keyctl.h>
 #include <linux/crypto.h>
 #include <linux/key.h>
 #include <linux/keyctl.h>
-#ifdef HAVE_LINUX_KEYTYPE_H
 #include <linux/key-type.h>
 #include <linux/key-type.h>
-#endif
 #include <linux/mutex.h>
 #include <asm/atomic.h>
 #else
 #include <linux/mutex.h>
 #include <asm/atomic.h>
 #else