Whamcloud - gitweb
LU-1484 kernel: fix build error with 2.6.18 kernel
authorPeng Tao <tao.peng@emc.com>
Thu, 15 Nov 2012 11:17:20 +0000 (19:17 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 17 Dec 2012 05:28:54 +0000 (00:28 -0500)
When crossing building 2.6.18 kernel, I always got following
errors:
lustre-release/libcfs/include/libcfs/params_tree.h:107:2:
   error: #error proc_dir_entry->deleted is conflicted
   with proc_dir_entry->pde_users

It is because after commit 76bf16d1, HAVE_PROCFS_USERS and
HAVE_PROCFS_DELETED can both be true on old kernels with
backported code.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Change-Id: I2b420f401f221c619b9643acee2ff54057af0fc9
Reviewed-on: http://review.whamcloud.com/4589
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
libcfs/include/libcfs/params_tree.h

index 927ede9..fac664e 100644 (file)
@@ -103,10 +103,6 @@ do {                                       \
 
 #ifdef HAVE_PROCFS_DELETED
 
-#ifdef HAVE_PROCFS_USERS
-#error proc_dir_entry->deleted is conflicted with proc_dir_entry->pde_users
-#endif
-
 static inline
 int LPROCFS_ENTRY_AND_CHECK(struct proc_dir_entry *dp)
 {