Whamcloud - gitweb
kernels from 2.6.21 not need include linux/config.h, but add include
authorshadow <shadow>
Thu, 21 Jun 2007 05:02:55 +0000 (05:02 +0000)
committershadow <shadow>
Thu, 21 Jun 2007 05:02:55 +0000 (05:02 +0000)
linux/autoconf.h in commpiler command line.

b=12605
i=wangdi
i=scjody

lustre/ChangeLog
lustre/obdfilter/filter.c

index 3c1e444..edaebde 100644 (file)
@@ -325,6 +325,12 @@ Details    : decrease the amount of synchronous RPC between clients and servers
              by canceling conflicing lock before the operation on the client side
              and packing thier handles into the main operation RPC to server.
 
+Severity   : enhancement
+Bugzilla   : 12605
+Description: add #ifdef HAVE_KERNEL_CONFIG_H
+Details    : kernels from 2.6.21 not need include linux/config.h, but add include 
+            linux/autoconf.h in commpiler command line.
+
 --------------------------------------------------------------------------------
 
 2007-05-03  Cluster File Systems, Inc. <info@clusterfs.com>
index 5b3b61b..f066f76 100644 (file)
@@ -34,8 +34,9 @@
  */
 
 #define DEBUG_SUBSYSTEM S_FILTER
-
+#ifdef HAVE_KERNEL_CONFIG_H
 #include <linux/config.h>
+#endif
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/dcache.h>