All of
 help / color / mirror / Atom feed
From: (Daniel Díaz)
Subject: [Linux-kselftest-mirror] [PATCH v2] selftests: sync: missing CFLAGS while compiling
Date: Tue,  6 Feb 2018 16:23:39 -0600	[thread overview]
Message-ID: <> (raw)
Message-ID: <20180206222339.J6MRsC37hxcrcQq24XjWObOOF2kEwUXu9Q5AhsmTlxQ@z> (raw)

From: Anders Roxell <>

Based on patch:

arch64-linux-gnu-gcc -c sync.c -o sync/sync.o
sync.c:42:29: fatal error: linux/sync_file.h: No such file or directory
 #include <linux/sync_file.h>
CFLAGS is not used during the compile step, so the system instead of
kernel headers are used.  Fix this by adding CFLAGS to the OBJS compile

Reported-by: Lei Yang <Lei.Yang at>
Signed-off-by: Anders Roxell <anders.roxell at>
Signed-off-by: Daniel Díaz <daniel.diaz at>
 tools/testing/selftests/sync/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile
index b3c8ba3..d0121a8 100644
--- a/tools/testing/selftests/sync/Makefile
+++ b/tools/testing/selftests/sync/Makefile
@@ -30,7 +30,7 @@ $(TEST_CUSTOM_PROGS): $(TESTS) $(OBJS)
 $(OBJS): $(OUTPUT)/%.o: %.c
-	$(CC) -c $^ -o $@
+	$(CC) -c $^ -o $@ $(CFLAGS)
 $(TESTS): $(OUTPUT)/%.o: %.c
 	$(CC) -c $^ -o $@

To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at
More majordomo info at

             reply	other threads:[~2018-02-06 22:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-06 22:23 Daniel Díaz [this message]
2018-02-06 22:23 ` Daniel Díaz
2018-02-06 22:23 ` 
2018-02-13 21:25 ` Shuah Khan
2018-02-13 21:25   ` Shuah Khan
2018-02-13 21:25   ` shuahkh

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:

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

  git send-email \ \ \
    --subject='Re: [Linux-kselftest-mirror] [PATCH v2] selftests: sync: missing CFLAGS while compiling' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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.