From 2771209ae770972cd9fe3211f2dec15e695d2f07 Mon Sep 17 00:00:00 2001 From: shadow Date: Thu, 21 Jun 2007 05:02:55 +0000 Subject: [PATCH] kernels from 2.6.21 not need include linux/config.h, but add include linux/autoconf.h in commpiler command line. b=12605 i=wangdi i=scjody --- lustre/ChangeLog | 6 ++++++ lustre/obdfilter/filter.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 3c1e444..edaebde 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -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. diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 5b3b61b..f066f76 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -34,8 +34,9 @@ */ #define DEBUG_SUBSYSTEM S_FILTER - +#ifdef HAVE_KERNEL_CONFIG_H #include +#endif #include #include #include -- 1.8.3.1