From: Marc Dionne Date: Wed, 13 Oct 2010 23:11:25 +0000 (-0400) Subject: Linux: fix statfs configure test X-Git-Tag: upstream/1.8.0_pre1^2~4668 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=59927e20052c3f075e0269e46691bc94c3974f86;p=packages%2Fo%2Fopenafs.git Linux: fix statfs configure test The change to the statfs configure test that was made for 2.6.36 broke the test for older kernels. The new test is based on a call, and that will generate a warning but not an error when the arguments don't match the prototype. Take another tack, and revert to the old style test, but with the simple_statfs function instead of vfs_statfs. Change-Id: Ic4baa24e2497f43791e069ce2c5c87fa21813f9f Reviewed-on: http://gerrit.openafs.org/2975 Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 424bedfb7..709d8ebb4 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -269,10 +269,7 @@ AC_DEFUN([LINUX_STATFS_TAKES_DENTRY], [ [ac_cv_linux_statfs_takes_dentry], [#include #include ], -[struct super_block _sb; -struct dentry _dentry; -struct kstatfs _kstatfs; -(void)_sb.s_op->statfs(&_dentry, &_kstatfs);], +[extern int simple_statfs(struct dentry *, struct kstatfs *);], [STATFS_TAKES_DENTRY], [define if your statfs takes a dentry argument]) ])