Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Thu, 4 Sep 2008 08:18:33 +0000 (08:18 +0000)
committeradilger <adilger>
Thu, 4 Sep 2008 08:18:33 +0000 (08:18 +0000)
Fix build problem for vendor kernels that have back-ported lockdep.

libcfs/include/libcfs/linux/linux-lock.h

index 474132b..2f7ba36 100644 (file)
@@ -145,7 +145,7 @@ static inline int mutex_is_locked(struct mutex *lock)
 }
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) */
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#ifndef lockdep_set_class
 
 /**************************************************************************
  *