diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 2456e320a19276a00a8b795644772e93844e7ebd..21457fab25aa0b69b8953e7ad54a2f7829dd0d4e 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -1178,18 +1178,6 @@ LB_LINUX_TRY_COMPILE([ ]) ]) -# asm/segment.h does not exist on all architectures. -# e.g. the file is empty for ia64 and does not exist for PPC. -AC_DEFUN([LC_SEGMENT_H], - [LB_CHECK_FILE([$LINUX/include/asm/segment.h], - [AC_MSG_CHECKING([if asm/segment.h is present]) - LB_LINUX_TRY_COMPILE([#include <asm/segment.h>], [], - [AC_MSG_RESULT([yes]) - AC_DEFINE(HAVE_SEGMENT_H, 1, - [asm/segment.h exists])], - [AC_MSG_RESULT([no])])]) -]) # LC_SEGMENT_H - # # LN_PROG_LINUX # diff --git a/lnet/include/libcfs/linux/kp30.h b/lnet/include/libcfs/linux/kp30.h index f2a1bfb4a74cb814175480fb3f2dc495ad714cc5..aceaa2c0ea34e9da21d778ca961306203d7d9d4a 100644 --- a/lnet/include/libcfs/linux/kp30.h +++ b/lnet/include/libcfs/linux/kp30.h @@ -23,9 +23,6 @@ # include <linux/kmod.h> # include <linux/notifier.h> # include <linux/fs.h> -# ifdef HAVE_SEGMENT_H -# include <asm/segment.h> -# endif # include <linux/miscdevice.h> # include <linux/vmalloc.h> # include <linux/time.h>