All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [COMMITTED][PATCH 1/1] m4: Remove include from AC_CHECK_FUNCS
Date: Thu, 18 Oct 2018 11:14:39 +0200	[thread overview]
Message-ID: <20181018091439.20354-1-pvorel@suse.cz> (raw)

As AC_CHECK_FUNCS doesn't use it (unlike AC_CHECK_TYPES). The purpose
of AC_CHECK_FUNCS is to check whether the linker can find a function
by that name, independently of system headers, so there is no reason
to include any system headers.

Fixes: 0d28feaac ("syscalls: Prepare for testing statx syscall")

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 m4/ltp-statx.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/ltp-statx.m4 b/m4/ltp-statx.m4
index 5f79a94cd..7629f51c2 100644
--- a/m4/ltp-statx.m4
+++ b/m4/ltp-statx.m4
@@ -21,7 +21,7 @@ dnl LTP_CHECK_STATX
 dnl ----------------------------
 dnl
 AC_DEFUN([LTP_CHECK_STATX],[
-AC_CHECK_FUNCS(statx,,,[[#include <sys/stat.h>]])
+AC_CHECK_FUNCS(statx,,)
 AC_CHECK_HEADER(linux/fs.h,,,)
 AC_CHECK_TYPES([struct statx],,,[[
 	#define _GNU_SOURCE
-- 
2.19.0


                 reply	other threads:[~2018-10-18  9:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181018091439.20354-1-pvorel@suse.cz \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.