Whamcloud - gitweb
LU-5326 libcfs: remove umode_t typedef 55/11055/2
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 10 Jul 2014 19:05:54 +0000 (14:05 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 11 Jul 2014 17:35:01 +0000 (17:35 +0000)
The umode_t typedef in libcfs/include/libcfs/posix/posix-types.h is no
longer needed and causes lustre_user.h to be unusable outside of the
lustre tree on powerpc64 so remove it.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Id38a5b3bb998743c3fd29a244aafea421f94c080
Reviewed-on: http://review.whamcloud.com/11055
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/posix/posix-types.h

index 4264cd2..81d3552 100644 (file)
@@ -408,11 +408,6 @@ AC_CHECK_FUNCS([strlcpy])
 # libcfs/libcfs/user-prim.c, missing for RHEL5 and earlier userspace
 AC_CHECK_FUNCS([strlcat])
 
 # libcfs/libcfs/user-prim.c, missing for RHEL5 and earlier userspace
 AC_CHECK_FUNCS([strlcat])
 
-AC_CHECK_TYPE([umode_t],
-       [AC_DEFINE(HAVE_UMODE_T, 1, [umode_t is defined])],
-       [],
-       [#include <asm/types.h>])
-
 # --------  Check for required packages  --------------
 
 AC_MSG_NOTICE([LibCFS required packages checks
 # --------  Check for required packages  --------------
 
 AC_MSG_NOTICE([LibCFS required packages checks
index ee722a5..77a589b 100644 (file)
 # include <linux/types.h>
 #endif
 #include <stdbool.h> /* for bool */
 # include <linux/types.h>
 #endif
 #include <stdbool.h> /* for bool */
-#ifndef HAVE_UMODE_T
-typedef unsigned short umode_t;
-#else
-#endif
 
 #ifndef _LINUX_TYPES_H
 /*
 
 #ifndef _LINUX_TYPES_H
 /*