From: lei yang <lei.yang@windriver.com>
To: Shuah Khan <shuahkh@osg.samsung.com>
Cc: <linux-kselftest@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Shuah Khan <shuah@kernel.org>
Subject: Re: [PATCH] selftests: fix compile error for sync
Date: Tue, 7 Nov 2017 09:14:00 +0800 [thread overview]
Message-ID: <c97a29d9-e424-c996-3729-d4d7e0a5bc07@windriver.com> (raw)
In-Reply-To: <9a23bae8-00ee-eeb6-0b51-16132aab5b1a@osg.samsung.com>
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 <linux/sync_file.h>
>>
>> obviously, CFLAGS and LDFLAGS are not used when comipling.
>>
>> Signed-off-by: Lei Yang <Lei.Yang@windriver.com>
>> ---
>> 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
next prev parent reply other threads:[~2017-11-07 1:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-05 10:08 Lei Yang
2017-11-06 23:35 ` Shuah Khan
2017-11-07 1:14 ` lei yang [this message]
2017-11-07 22:54 ` Shuah Khan
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=c97a29d9-e424-c996-3729-d4d7e0a5bc07@windriver.com \
--to=lei.yang@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=shuahkh@osg.samsung.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®