From d0cd5d1ccf691c40e64bdaebe8e34d22b730eaea Mon Sep 17 00:00:00 2001
From: shadow <shadow>
Date: Tue, 25 Mar 2008 12:25:41 +0000
Subject: [PATCH] remove unneed include.

---
 lustre/include/linux/obd_class.h     | 3 ---
 lustre/llite/llite_mmap.c            | 3 ---
 lustre/llite/rw.c                    | 3 ---
 lustre/llite/rw24.c                  | 3 ---
 lustre/lvfs/upcall_cache.c           | 3 ---
 lustre/mds/mds_lib.c                 | 3 ---
 lustre/obdclass/linux/linux-sysctl.c | 3 ---
 7 files changed, 21 deletions(-)

diff --git a/lustre/include/linux/obd_class.h b/lustre/include/linux/obd_class.h
index d36033394c..75a77cd333 100644
--- a/lustre/include/linux/obd_class.h
+++ b/lustre/include/linux/obd_class.h
@@ -31,9 +31,6 @@
 #include <sys/types.h>
 #include <libcfs/list.h>
 #else
-#ifdef HAVE_SEGMENT_H
-# include <asm/segment.h>
-#endif
 #include <asm/uaccess.h>
 #include <linux/types.h>
 #include <linux/fs.h>
diff --git a/lustre/llite/llite_mmap.c b/lustre/llite/llite_mmap.c
index 7dd3e1a720..d2e0d66e07 100644
--- a/lustre/llite/llite_mmap.c
+++ b/lustre/llite/llite_mmap.c
@@ -35,9 +35,6 @@
 #include <linux/fs.h>
 #include <linux/stat.h>
 #include <asm/uaccess.h>
-#ifdef HAVE_SEGMENT_H
-# include <asm/segment.h>
-#endif
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/smp_lock.h>
diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c
index 8466be3036..58f0592f59 100644
--- a/lustre/llite/rw.c
+++ b/lustre/llite/rw.c
@@ -37,9 +37,6 @@
 #include <linux/fs.h>
 #include <linux/stat.h>
 #include <asm/uaccess.h>
-#ifdef HAVE_SEGMENT_H
-# include <asm/segment.h>
-#endif
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/smp_lock.h>
diff --git a/lustre/llite/rw24.c b/lustre/llite/rw24.c
index 60113dac51..ab83f8f58a 100644
--- a/lustre/llite/rw24.c
+++ b/lustre/llite/rw24.c
@@ -38,9 +38,6 @@
 #include <linux/iobuf.h>
 #include <linux/stat.h>
 #include <asm/uaccess.h>
-#ifdef HAVE_SEGMENT_H
-# include <asm/segment.h>
-#endif
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/smp_lock.h>
diff --git a/lustre/lvfs/upcall_cache.c b/lustre/lvfs/upcall_cache.c
index d871e9f985..61e1e85e1f 100644
--- a/lustre/lvfs/upcall_cache.c
+++ b/lustre/lvfs/upcall_cache.c
@@ -43,9 +43,6 @@
 #include <linux/stat.h>
 #include <asm/uaccess.h>
 #include <linux/slab.h>
-#ifdef HAVE_SEGMENT_H
-# include <asm/segment.h>
-#endif
 
 #include <obd_support.h>
 #include <lustre_lib.h>
diff --git a/lustre/mds/mds_lib.c b/lustre/mds/mds_lib.c
index 8be4657586..9a144a6a75 100644
--- a/lustre/mds/mds_lib.c
+++ b/lustre/mds/mds_lib.c
@@ -48,9 +48,6 @@
 #include <linux/stat.h>
 #include <asm/uaccess.h>
 #include <linux/slab.h>
-#ifdef HAVE_SEGMENT_H
-# include <asm/segment.h>
-#endif
 
 #include <obd_support.h>
 #include <lustre_lib.h>
diff --git a/lustre/obdclass/linux/linux-sysctl.c b/lustre/obdclass/linux/linux-sysctl.c
index 1cc81285b4..0f860c3c9b 100644
--- a/lustre/obdclass/linux/linux-sysctl.c
+++ b/lustre/obdclass/linux/linux-sysctl.c
@@ -38,9 +38,6 @@
 #include <linux/stat.h>
 #include <linux/ctype.h>
 #include <asm/bitops.h>
-#ifdef HAVE_SEGMENT_H
-# include <asm/segment.h>
-#endif
 #include <asm/uaccess.h>
 #include <linux/utsname.h>
 
-- 
GitLab