From patchwork Fri Jan 5 16:33:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 123549 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1017711qgn; Fri, 5 Jan 2018 08:33:42 -0800 (PST) X-Google-Smtp-Source: ACJfBotSfJMnIcPSkJWjTzq8tshyCkJIv6q0qA4Y3ye/7v0w18PJeHRvLe7tgQEmoEJKhxpZbf7e X-Received: by 10.99.1.84 with SMTP id 81mr2969941pgb.86.1515170022524; Fri, 05 Jan 2018 08:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515170022; cv=none; d=google.com; s=arc-20160816; b=Bzn8cYj6+7ThPoNujKt91XlhPM13QBbXJJMXLZl+7aQtNkBea3WK6u0TkvZx26FrhA 7Lnr7ceMmLnmTts2f23z4vO3y/2uH8ZHm+THgCMRDRMqsY0RC2JVV3YLw2drrKTo4jCx n+nxkW8YY9HngLAUiFAGPJZA4JlBjSMynmcFBQWXVASKgI/T/y9mpx1YbQ5xp6zVyavK BbOWVB66jyAp5GNB+W0pc7jJ8OaFEuOM/jXAZs0zOJV7NWN9bXtRq5WNZrvMxfB7GX4U WDM1Z2RAjWzV0ZEhnBeaZJwNWf63Pjy9WApdbrbvRRqlDC14ewV+lPcbuHL9DNIog5Cu v5nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=3IAAlLtYZCP3i2+75wUWqrEp+JXoIJNLdyedXeuKRjU=; b=GG5YC9e0bOfw4X0LMylcJHTQXCnqp6NhEQwyOHK9rAyLimkS4nnrVke7LWWvZnJ8cq Vz7cVJY9pQa47BkrhYRlUzQ9HLEpByxfDGtHeI80iSzjI3W5ay0QBfFQgHi/vO0W4PxS rQdFzi9ygyU7t6dxG2QWhBvrOZqdGIW4eWC7ocoBeLFfpo2p6QvAJ409pBGAE+pF5uGy PSy2JQB0Bs1wPqAAAYRU5/ijxgBqnXX0YXu8XskO0s7gejdjndknMQl4HFh3u8HXIIOO TgmFWPDXfBw7r7698yfGYe8QNNpbwht4CPH3oZQABd6x1ktyOAax4S4nqZ8JaPam++f4 F4tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gDZpeJ2/; 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 c19si4205356plo.595.2018.01.05.08.33.42; Fri, 05 Jan 2018 08:33:42 -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=gDZpeJ2/; 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 S1752256AbeAEQdl (ORCPT + 26 others); Fri, 5 Jan 2018 11:33:41 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:41267 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbeAEQdi (ORCPT ); Fri, 5 Jan 2018 11:33:38 -0500 Received: by mail-lf0-f65.google.com with SMTP id h137so5702194lfe.8 for ; Fri, 05 Jan 2018 08:33:38 -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; bh=3IAAlLtYZCP3i2+75wUWqrEp+JXoIJNLdyedXeuKRjU=; b=gDZpeJ2/12IzYsNL8f05amu3OG9F+m5XgdkIgk12sBqaqv1IsYMT0Yc8B6gC75SXqq 8lM7DVWzZ6hkSJ+M1+l+VaVkoDUD524NHp7NheqKA2cw/FN22zfrybqegezNqYyf8n40 HoJUREnsuHtEr3wp+9uNHLTVEhZGbG/lmoiKM= 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; bh=3IAAlLtYZCP3i2+75wUWqrEp+JXoIJNLdyedXeuKRjU=; b=G5dUS8yq2VmcmfRYSRJxiOQn2lahgVdcqxyvXgRyTsdt+Pf5jTPyK5tXbAQOQZSvMo dmynq5FIpgsc49BWC4nbPtjWmNcEtdIqms57TPspT2mmCpGa41obZl9tABJmC+TB5L4b yQ///yafK/wxbXjrmz5ihDjzDTw1EcT26nn2tsgJMRt6PiFjXCJfgMuFONm11OnPH9Ee 42gpH0NJF6UDZLGcZx86mA7sq74fRY62C7I5JXu8guh8m9N9JdXuO3nkbOySDbeHKtjS VL7ebnZE9lQwVkwEuOp71k9ugu3OGl4uSzN10YsKh37XbE2WGU8aNozRQ/yY9Iq1VPyY nKrA== X-Gm-Message-State: AKGB3mIFnl+7SbOutbMZwYnuFqkQHQytCJETODF4mOPLqzmHYRrxo9/5 YJqSAnWYIvSZ5qXY3GXIaH0c/Q== X-Received: by 10.25.163.139 with SMTP id m133mr1903168lfe.111.1515170017575; Fri, 05 Jan 2018 08:33:37 -0800 (PST) Received: from localhost (c-153870d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.56.21]) by smtp.gmail.com with ESMTPSA id v12sm1053642ljd.15.2018.01.05.08.33.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jan 2018 08:33:36 -0800 (PST) From: Anders Roxell To: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, tglx@linutronix.de, kstewart@linuxfoundation.org, pombredanne@nexb.com, shuah@kernel.org, Lei.Yang@windriver.com, Anders Roxell Subject: [PATCH] selftests: sync: missing CFLAGS while compiling Date: Fri, 5 Jan 2018 17:33:23 +0100 Message-Id: <20180105163323.22920-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 using lib.mk's compile rules and remove CFLAGS from the linking step. Reported-by: Lei Yang Signed-off-by: Anders Roxell --- tools/testing/selftests/sync/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.11.0 Tested-by: Naresh Kamboju diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile index b3c8ba3cb668..58b9336d6c84 100644 --- a/tools/testing/selftests/sync/Makefile +++ b/tools/testing/selftests/sync/Makefile @@ -27,12 +27,6 @@ OBJS := $(patsubst %,$(OUTPUT)/%,$(OBJS)) TESTS := $(patsubst %,$(OUTPUT)/%,$(TESTS)) $(TEST_CUSTOM_PROGS): $(TESTS) $(OBJS) - $(CC) -o $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) $(CFLAGS) $(LDFLAGS) - -$(OBJS): $(OUTPUT)/%.o: %.c - $(CC) -c $^ -o $@ - -$(TESTS): $(OUTPUT)/%.o: %.c - $(CC) -c $^ -o $@ + $(CC) -o $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) $(LDFLAGS) EXTRA_CLEAN := $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS)