Whamcloud - gitweb
LU-2800 autoconf: remove LIBCFS_CPUMASK_SIZE 93/7693/2
authorJames Simmons <uja.ornl@gmail.com>
Wed, 18 Sep 2013 14:16:27 +0000 (10:16 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 25 Oct 2013 02:23:01 +0000 (02:23 +0000)
The function cpumask_size has been in the linux kernel
since 2.6.28. Also HAVE_CPUMASK_SIZE is not even used
anywhere in the source tree. We can remove this obsolete
test.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: Ie6090055105dcaa55fc031bf52e5a25cd7bcf321
Reviewed-on: http://review.whamcloud.com/7693
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/autoconf/lustre-libcfs.m4

index 210fa2f..9703991 100644 (file)
@@ -82,21 +82,6 @@ LB_LINUX_TRY_COMPILE([
 EXTRA_KCFLAGS="$tmp_flags"
 ])
 
-# check cpumask_size (2.6.28)
-AC_DEFUN([LIBCFS_CPUMASK_SIZE],
-[AC_MSG_CHECKING([whether have cpumask_size()])
-LB_LINUX_TRY_COMPILE([
-       #include <linux/cpumask.h>
-],[
-       int size = cpumask_size();
-],[
-       AC_MSG_RESULT(yes)
-       AC_DEFINE(HAVE_CPUMASK_SIZE, 1, [have cpumask_size()])
-],[
-       AC_MSG_RESULT(NO)
-])
-])
-
 # 2.6.24 request not use real numbers for ctl_name
 AC_DEFUN([LIBCFS_SYSCTL_UNNUMBERED],
 [AC_MSG_CHECKING([for CTL_UNNUMBERED])