diff --git a/src/cf/linux-test1.m4 b/src/cf/linux-test1.m4 index 94bd0692ce..6695385b89 100644 --- a/src/cf/linux-test1.m4 +++ b/src/cf/linux-test1.m4 @@ -199,7 +199,10 @@ AC_DEFUN([AC_CHECK_LINUX_OPERATION], AC_CACHE_CHECK([operation $2 in $1], [ac_linux_operation], [save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -Werror" - AC_TRY_KBUILD([$4], [struct $1 ops; $5 op($6) { return ($5)0; }; ops.$2 = op;], + AC_TRY_KBUILD( + [$4 + $5 op($6) { return ($5)0; };], + [struct $1 ops; ops.$2 = op;], AS_VAR_SET([ac_linux_operation], [yes]), AS_VAR_SET([ac_linux_operation], [no])) CPPFLAGS="$save_CPPFLAGS" diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 0d6b645f41..3f7f4d5fcd 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -492,8 +492,9 @@ AC_DEFUN([LINUX_KMEM_CACHE_CREATE_TAKES_DTOR], [ AC_DEFUN([LINUX_KMEM_CACHE_CREATE_CTOR_TAKES_VOID],[ AC_CHECK_LINUX_BUILD([whether kmem_cache_create constructor takes a void pointer], [ac_cv_linux_kmem_cache_create_ctor_takes_void], - [#include ], - [void _ctor(void *v) { }; kmem_cache_create(NULL, 0, 0, 0, _ctor);], + [#include + void _ctor(void *v) { };], + [kmem_cache_create(NULL, 0, 0, 0, _ctor);], [KMEM_CACHE_CTOR_TAKES_VOID], [define if kmem_cache_create constructor takes a single void ptr], [-Werror])