]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux: fix probing for noop_fsync
authorChristof Hanke <christof.hanke@rzg.mpg.de>
Sun, 29 Jan 2012 17:08:57 +0000 (18:08 +0100)
committerDerrick Brashear <shadow@dementix.org>
Thu, 23 Feb 2012 01:44:52 +0000 (17:44 -0800)
Commit 267934d0e6910c8d8166a6e78f93c1bab40857b8 introduced
probing code to deal with the renameing of simple_fsync
inside the linux-kernel.
This test does not take different parameter-lists
for noop_fsync or simple_fsync resp. into account.
Fix this.

Reviewed-on: http://gerrit.openafs.org/6628
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 20e82cecd9008f9b3467c9a323c5c3abf27f3021)

Change-Id: I478a1ea15150ca120c8f85e9696d8bdedfc974d1
Reviewed-on: http://gerrit.openafs.org/6751
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
acinclude.m4

index ba157c0aeb1ac789121e567928249cfc165fc25d..dd89d094f7e23fcf32602afc8d368769005fcde5 100644 (file)
@@ -901,7 +901,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
                                     [zero_user_segments(NULL, 0, 0, 0, 0);])
                 AC_CHECK_LINUX_FUNC([noop_fsync],
                                     [#include <linux/fs.h>],
-                                    [noop_fsync(NULL, 0, 0, 0);])
+                                    [void *address = &noop_fsync; printk("%p\n", address)];)
 
                 dnl Consequences - things which get set as a result of the
                 dnl                above tests