Received: by 10.223.164.202 with SMTP id h10csp1186335wrb; Tue, 7 Nov 2017 01:27:30 -0800 (PST) X-Google-Smtp-Source: ABhQp+StIk5XAp6s2kqH1ZqXEHvoFse3q5VWo+xo8R21xV46sUCe7BqnZw6l3ttBsCHZBR9u2wP/ X-Received: by 10.159.249.9 with SMTP id bf9mr17612270plb.383.1510046850250; Tue, 07 Nov 2017 01:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510046850; cv=none; d=google.com; s=arc-20160816; b=Wxn1JWevDZS1dWRUPqCRlbEDibMlV0Z2tiXlFLm7p6F5GGdRy0Ssx79FbNidSxGoBH tSS5VXAKSNt9OxkKSul9yee1ALsW6Siw9qVGMj5IzHjzsW8uD3l+HEUHPskcGET4rWUF B+NRWjqNhvVzqcxuFTQEMc8deuia248emLaf0/kIVCqNXhVjiCLqq3wH+xrgjRPftWyc TGUHOcYp1jUGgubzXBc3n+tAEMKW9c25JyJPrW8LGsy8UZ2fj90LnOm0iWeVej718fw8 CdxOYqCEl3s0m6NDqKK0oquKRybSZ23RAdTfJuJF1BGRZYCcauetQv7DCkPOClDSyH7j vNVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=rK9kSs+Y/HkcYB80gziGJliqfPCpV7nkKitRYGCGutY=; b=oiG1Hx0R965PINYnlSaBz0sniV6VQ+zIiPs7DkaUHG8A/MsdcA4ShP4uCGdYikiRqc YPYmWFcNw6LLYtx62Nbly51XMt6yXcRNDzBrOZP2tnY+Lz16gg0qFNr0rBPQfuQGkNnj /aAbbyecD1I+c6NB/8xBEJUE44ola2gdbpGSqmyRzbTpR0P1I72rtZZDdHjP8x0ioV+I NOepacXntnerEeK01E8WoSCuvxp5pmMvs1X4of3r3/3mACaNis1BVfYmpsxvLnAUXBda UKgt4L8fMkbzgRaC/BGEllGUARtrBnisGiDFIBKimdqElFbTPsJjUcouEBJmpxIGm64Y iK7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si754788pfh.288.2017.11.07.01.27.07; Tue, 07 Nov 2017 01:27:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934406AbdKGBPI (ORCPT + 94 others); 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 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id vA71F3Jn003204 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 6 Nov 2017 17:15:03 -0800 (PST) Received: from [128.224.163.162] (128.224.163.162) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 6 Nov 2017 17:15:01 -0800 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 Precedence: bulk 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 From 1583361722032610451@xxx Mon Nov 06 23:36:47 +0000 2017 X-GM-THRID: 1583220447462694273 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread