From patchwork Tue Feb 6 22:23:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 127100 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3328006ljc; Tue, 6 Feb 2018 14:24:04 -0800 (PST) X-Google-Smtp-Source: AH8x227LKlTe/2pKISsAT0Auay1JPkMO09o2g6qgN6S06PSukDjutP0UFs7QN5vKFJq+YhWPLwiS X-Received: by 10.101.97.209 with SMTP id j17mr3069879pgv.266.1517955844055; Tue, 06 Feb 2018 14:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517955844; cv=none; d=google.com; s=arc-20160816; b=r9I6A2r0LQ85q52e4QgoTKOtHlmN6ZIIo68uRPNG8rWBeJaA+he8Fv661TKCfH7aP8 XqRpPsczulRTUV0FRCximK99xVyHDcH3Ih9dWos+nV7uKraZZMrOlj8DvFijqNPpWoFl p4t/i5/xFysJtoOfr4l4MYc5CXM3jWP6im3aaVP99D88j8zYpE3qS9wZwGDtkUIcXcL/ tmbiWmudDp/OsKzcKb5Per0CIJyrEp25F5ucoHyuh9KHR063trwKeDrmP5qs2RyYk3Jy X1/2N+FDwxe6xiix58f8omb36J3EaiYqCWXH2t2y5SyhviSE/12M+0OztPJLT54xxuEM CgDw== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=+/4QNu3bfI+DD/4jZonwNVWqAP26cWn37tJyIJhClo0=; b=VPsuyNQBP27S9BpgTyQ3q3j55QvtKPmdDQSUPBmLObM1OLDnaL9+XDWfAriScP0DpQ 7YFrHWAN2S2x4QGiwJJWr4iY8q2vq6OK3QgOEQtx+hDGBsXQITXq0je/xNhjYDiyLtEA fjdZP39fkJkkhFhwJMMCggTYJBG8NISD8nMlU8XncwvTymy7i29JzmFaqBjSQpmSsANV TZqlNNGzD6okALf4Meiq6OnTreUuOWIcBo2QzvfZyKZXtDqEPEcIbD3JFVYdFrmAy8VV 5UOS3bZ9VDLRKRDyABzLMBHoUn5bP37q5m9OCEgtpaZjKUjd113LyFYDHrUlrGmQ2F+N MiXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eH49kfYo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33-v6si13216pld.103.2018.02.06.14.24.03; Tue, 06 Feb 2018 14:24:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=eH49kfYo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753589AbeBFWX7 (ORCPT + 13 others); Tue, 6 Feb 2018 17:23:59 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:33457 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753329AbeBFWX5 (ORCPT ); Tue, 6 Feb 2018 17:23:57 -0500 Received: by mail-oi0-f68.google.com with SMTP id l8so2575468oig.0 for ; Tue, 06 Feb 2018 14:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+/4QNu3bfI+DD/4jZonwNVWqAP26cWn37tJyIJhClo0=; b=eH49kfYoyy9dYsXwn3abSI1adIWTTPjUPNsEux3ht4UYeh/B9gxwb/+QYlK6errPBL OqNAnm86krD0Yr8a+iemxwx2Uwz0MDqSjo1H/fjsf477rOydvy3CU8eowqsOE+Rsw3zw WE84+2gLQWHu7YEvyCVaufMAytMipLUUzwG6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+/4QNu3bfI+DD/4jZonwNVWqAP26cWn37tJyIJhClo0=; b=IJT49T8bxpogl/gp8d80w7ExC+bUJbZxu4V2GDXG4fKmu/I06e6jPfjl60ZTyrRSX2 VZFxo5RXFWE0cYTLj3jwB6QdxFgnCz3kDvaKujLPE5HNxIT7yXswK5OLaFrgF3kIjWW0 AnnkXI5mT4Sd013V/8LtEX57J9Q+a1mJcnBJx2iBROE7PPxx6WnY/51uI3EKGjeyatRw o2XvUqpvJoedenN/MsAkA3g3G2iyaLgRGaoYyHA4+on75+61DbLK8WUedrW2YFjh5hCG D1ZsI7cp+PIemwwVXs/KNiOBt0hZelDZDZqzqsZba0/3hCVvKbhgQWSa6bRkE7iO6SXF hRRQ== X-Gm-Message-State: APf1xPC3/7b0bnAUJ1jnIVrprym7BkQSRNzezK8m8CYRfBFtlgCjsGKk +mscMAVUFsKO4PXdvY52Kxl2LA== X-Received: by 10.202.224.86 with SMTP id x83mr2564995oig.269.1517955836916; Tue, 06 Feb 2018 14:23:56 -0800 (PST) Received: from aura.cortijodelrio.net (CableLink-187-161-113-185.PCs.InterCable.net. [187.161.113.185]) by smtp.googlemail.com with ESMTPSA id l132sm20404oih.45.2018.02.06.14.23.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 14:23:55 -0800 (PST) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: shuahkh@osg.samsung.com, linux-kselftest@vger.kernel.org Cc: Anders Roxell , =?utf-8?q?Daniel_D=C3=ADaz?= , Shuah Khan , Greg Kroah-Hartman , Thomas Gleixner , Kate Stewart , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] selftests: sync: missing CFLAGS while compiling Date: Tue, 6 Feb 2018 16:23:39 -0600 Message-Id: <1517955821-11511-1-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anders Roxell Based on patch: https://patchwork.kernel.org/patch/10042045/ 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 ^ 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 rule. Reported-by: Lei Yang Signed-off-by: Anders Roxell Signed-off-by: Daniel Díaz --- tools/testing/selftests/sync/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 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) $(CC) -o $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) $(CFLAGS) $(LDFLAGS) $(OBJS): $(OUTPUT)/%.o: %.c - $(CC) -c $^ -o $@ + $(CC) -c $^ -o $@ $(CFLAGS) $(TESTS): $(OUTPUT)/%.o: %.c $(CC) -c $^ -o $@