From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964881AbdKGBPI (ORCPT ); Mon, 6 Nov 2017 20:15:08 -0500 Received: from mail1.windriver.com ([147.11.146.13]:46461 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755119AbdKGBPF (ORCPT ); Mon, 6 Nov 2017 20:15:05 -0500 Subject: Re: [PATCH] selftests: fix compile error for sync To: Shuah Khan References: <1509876499-18499-1-git-send-email-Lei.Yang@windriver.com> <9a23bae8-00ee-eeb6-0b51-16132aab5b1a@osg.samsung.com> CC: , , Shuah Khan From: lei yang Message-ID: Date: Tue, 7 Nov 2017 09:14:00 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <9a23bae8-00ee-eeb6-0b51-16132aab5b1a@osg.samsung.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [128.224.163.162] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017年11月07日 07:35, Shuah Khan wrote: > On 11/05/2017 03:08 AM, Lei Yang wrote: >> I got below error message when building sync test: >> >> make[1]: Entering directory `tools/testing/selftests/sync' >> gcc -c sync.c -o tools/testing/selftests/sync/sync.o >> sync.c:42:29: fatal error: linux/sync_file.h: No such file or directory >> #include >> >> obviously, CFLAGS and LDFLAGS are not used when comipling. >> >> Signed-off-by: Lei Yang >> --- >> tools/testing/selftests/sync/Makefile | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile >> index 8e04d0a..46cbcc3 100644 >> --- a/tools/testing/selftests/sync/Makefile >> +++ b/tools/testing/selftests/sync/Makefile >> @@ -29,9 +29,9 @@ $(TEST_CUSTOM_PROGS): $(TESTS) $(OBJS) >> $(CC) -o $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) $(CFLAGS) $(LDFLAGS) >> >> $(OBJS): $(OUTPUT)/%.o: %.c >> - $(CC) -c $^ -o $@ >> + $(CC) -c $^ -o $@ $(CFLAGS) $(LDFLAGS) >> >> $(TESTS): $(OUTPUT)/%.o: %.c >> - $(CC) -c $^ -o $@ >> + $(CC) -c $^ -o $@ $(CFLAGS) $(LDFLAGS) >> >> EXTRA_CLEAN := $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) >> > How are you building the test? I am not seeing the error on linux-4.14.0-rc8 make -C tools/testing/selftests Lei > thanks, > -- Shuah > -- > To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html