From: Christof Hanke Date: Sun, 29 Jan 2012 17:08:57 +0000 (+0100) Subject: linux: fix probing for noop_fsync X-Git-Tag: upstream/1.6.1.pre4^2~72 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e0e23418bb5569683a3afbba68ae718f060ad00b;p=packages%2Fo%2Fopenafs.git linux: fix probing for noop_fsync 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 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 20e82cecd9008f9b3467c9a323c5c3abf27f3021) Change-Id: I478a1ea15150ca120c8f85e9696d8bdedfc974d1 Reviewed-on: http://gerrit.openafs.org/6751 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/acinclude.m4 b/acinclude.m4 index ba157c0ae..dd89d094f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 ], - [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