Received: by 10.223.164.200 with SMTP id h8csp27753wrb; Sun, 5 Nov 2017 02:11:17 -0800 (PST) X-Google-Smtp-Source: ABhQp+S6s0nUJp5ke0oG1uXA4lHKBLJkX9Gtz+b/LU47ClCfHG+N41WTxXQAzPP5fjleZbYF5OeG X-Received: by 10.99.95.70 with SMTP id t67mr12108392pgb.409.1509876677694; Sun, 05 Nov 2017 02:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509876677; cv=none; d=google.com; s=arc-20160816; b=JjqzfgQon5IuY+4GdXxVURNtD/UIGIElw1qymQaVzDG4S0bI7W+KLm39uuNPCFRPPh OpjDuHWqtGonDGqOgvPmABkwQWpOTdm8M9h6AABQRVlsiXuLpMM4oNkukxxV37p0vcFt EWvkAXk3iWFQP712bdkmItYOpuMoG/+1EvopThJGmRaTokdjCtq7fyMsZjh0/Mq1q/D4 0tI+HkS3KElSF6I5QdhjNd5DWvJSa52PEJiasLOTwvdrXON+mSuWX4WKK5A3WzDrkoFg bLxrnP5Br79DFCTqVYBc6Eglq4a+OGj7wP7bVKAgdbWTrGMBbWD+P6YPongyucp8ZyCc lZAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from:arc-authentication-results; bh=RwPNFftDyi4zLeQ2IFVyilL38Sm2ahlNcbtKuVArZuc=; b=mFejj45uvbFlgTBTUJ+j6Rgw/jdhRqkgt6CxTfwWCbaXgXk7GEncmjTMFtTG0Knpxh iPCKzfK38kPTUD67wHa37WJr7WAF7sRm5SOeVF7oYaJRj/y94haCW/RCqRjGfKVaOpxl jdF6AoGv61wNKrd4cIP79Ycxk5yF8rYGbUIRY1NEX0QX7c5Bzfd7YUmDOGmdfGXg8yQt pS7WfP2OdmuVOqCnB01PswbdrAWp53rbn4/AWqAISF4tSrsDHkCwSAdVn+dGqXoJ4K6p DymfVFm0uaJu9MAbOpx0D1BBhymvo/QUkv6qg6cESz4yWl7CVsqsxOqH7QzjLaNEkkoh DX2A== 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 e191si9093238pgc.788.2017.11.05.02.10.29; Sun, 05 Nov 2017 02:11:17 -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 S1752079AbdKEKIp (ORCPT + 96 others); Sun, 5 Nov 2017 05:08:45 -0500 Received: from mail5.windriver.com ([192.103.53.11]:45410 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbdKEKIo (ORCPT ); Sun, 5 Nov 2017 05:08:44 -0500 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id vA5A8hSU032528 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Sun, 5 Nov 2017 02:08:43 -0800 Received: from pek-lyang0-d1.corp.ad.wrs.com (128.224.163.162) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.361.1; Sun, 5 Nov 2017 02:08:42 -0800 From: Lei Yang To: , , , Subject: [PATCH] selftests: fix compile error for sync Date: Sun, 5 Nov 2017 18:08:19 +0800 Message-ID: <1509876499-18499-1-git-send-email-Lei.Yang@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 1.9.1 From 1583468273824817686@xxx Wed Nov 08 03:50:23 +0000 2017 X-GM-THRID: 1583468273824817686 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread