[Pvfs2-cvs] commit by robl in pvfs2-1/maint/config: kernel.m4

CVS commit program cvs at parl.clemson.edu
Fri Aug 31 17:54:42 EDT 2007


Update of /projects/cvsroot/pvfs2-1/maint/config
In directory parlweb1:/tmp/cvs-serv7597/maint/config

Modified Files:
	kernel.m4 
Log Message:
fix test


Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/maint/config/kernel.m4,v
diff -u -w -p -u -r1.39 -r1.40
--- kernel.m4	31 Aug 2007 21:17:26 -0000	1.39
+++ kernel.m4	31 Aug 2007 21:54:42 -0000	1.40
@@ -810,8 +810,9 @@ AC_DEFUN([AX_KERNEL_FEATURES],
 	    #define __KERNEL__
 	    #include <linux/mm.h>
 	], [
-	    struct page p;
-	    p.count = 0;
+	    struct page *p;
+	    int foo;
+	    foo = atomic_read(&(p)->count);
 	],
 	AC_MSG_RESULT(yes)
 	AC_DEFINE(HAVE_OBSOLETE_STRUCT_PAGE_COUNT_NO_UNDERSCORE, 1, Define if struct page defines a count member without leading underscore),



More information about the Pvfs2-cvs mailing list