Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp775097pxm; Thu, 3 Mar 2022 04:30:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd1G1qxA+cRXZuKOgfnOkmpdUvXbyxP0RJyS2sVGket81TTR9ursbIWbpQ8Cxx7o+y3mI9 X-Received: by 2002:a17:90a:d681:b0:1be:e3e5:3e6e with SMTP id x1-20020a17090ad68100b001bee3e53e6emr5036692pju.122.1646310621097; Thu, 03 Mar 2022 04:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646310621; cv=none; d=google.com; s=arc-20160816; b=igdfeTDDUVTNzOmO5LUcEK439DVFi0IEZlG2n7V6cGwkBc4Wt6b1LlBWUXQoLBKFz/ D5c9BlaOSvoMksnx4svPmkp7c3rtSKa3l4APYjB896p0ylFiLKyS0tjxUr3YlquKZ07l 0LZDaAzkt/2+omc8C7WZihinHMxJe6oHVSh+yY9R5cL36vxbAdiOD4XP52GidHglLARS gAXvNzZm50byoSBVgUxF4EjEpRNyt1BpvoQeTcACG9eT4Sxv86SdPurNU7KPwIPiEkph pxFawt/OsGw1ZIV+I4NcU4yhli/PITxAn8VBTS0wSIc+aSCvUDKk6svrbhPC035nb756 cy3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vFtgFmGWP3fMgOk9VsgEJUsafrfquzILZ1N5Cb8mS/E=; b=gvdTMlNjQr396kY7hFG4qPDEbdfrUAzSl+w4N+fbqlycrpJG9kKL+wfckvYkJc/aoq fRIEOD6a3+0PFCnetCDoe+SnKBsd0YsBHPIKJuyj+wZ4E6bJZH14aLukIDD/wwyauREP uvi6uJM2xpO3+9KZzh9RE3QAstRS0UpzspwWOmVddsH2i9272iuJ+hpdwnLU/jkv5E5j SiFVzOu5MKh7gzdQDs2BQdS2ByNUqxkiF5c6jtcSyUFtyqrvXFAAqikOmdaUT5kUeVZ5 zXdRYV3s07xDOMS/nR4dvRsrPecjzNlWn8JIIMVsZFFtkelmfeBYQ0JYn2bTpZ404vF/ yN9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nmZuTxkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r142-20020a632b94000000b0037c46b0add4si1934272pgr.224.2022.03.03.04.30.04; Thu, 03 Mar 2022 04:30:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nmZuTxkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232603AbiCCLH3 (ORCPT + 99 others); Thu, 3 Mar 2022 06:07:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbiCCLH2 (ORCPT ); Thu, 3 Mar 2022 06:07:28 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85B8E17C41E; Thu, 3 Mar 2022 03:06:43 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: usama.anjum) with ESMTPSA id B1FAF1F45670 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1646305602; bh=04+GErvRLlfhBjoyh0q1PNEzVX2LD6M2KAvb8xvne10=; h=From:To:Cc:Subject:Date:From; b=nmZuTxkJ0YO9axs+PIMgA7q1yD5MiFSzwbOVNWi2UAngUsbTM9Rwj0SbZ129WrTuc CLs9+0kOKc5C6ZZ+pTp1bzeqpfNGanYeKeGZ3z8OiysCyy8NWOaaHlphnMS/sZMna7 wh6bUcHFQtXmtD97VHGFl4R1vbycqhyQTUznNa4TFocxigJpFVw66xtHkGAgrYmx+O NC0Pe4Zvf8VBwwvFYlMfZF0vSD2CGejdRpNss9vVXrrjTjt1EKXLlQkHPngB+bBdUs re2/OtE6ID6xAJIpvoLl+O+ALOw8FTf6zWTXJSyA4IVGfHt3skC+jLaIGzVA7G2kWP qCSAzEq5maxRw== From: Muhammad Usama Anjum To: Shuah Khan Cc: Muhammad Usama Anjum , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/interpreter: fix separate directory build Date: Thu, 3 Mar 2022 16:06:28 +0500 Message-Id: <20220303110629.2072927-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Separate directory build fails of this test as headers include path isn't set correctly in that case. Fix it by including KHDR_INCLUDES. make -C tools/testing/selftests O=build1 gcc -Wall -O2 -I../../../../usr/include trust_policy_test.c -lcap -o /linux_mainline/build1/kselftest/interpreter/trust_policy_test trust_policy_test.c:14:10: fatal error: linux/trusted-for.h: No such file or directory 14 | #include | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/interpreter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/interpreter/Makefile b/tools/testing/selftests/interpreter/Makefile index 7402fdb6533f..51dde8e01e32 100644 --- a/tools/testing/selftests/interpreter/Makefile +++ b/tools/testing/selftests/interpreter/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wall -O2 -I$(khdr_dir) +CFLAGS += -Wall -O2 -I$(khdr_dir) $(KHDR_INCLUDES) LDLIBS += -lcap src_test := $(wildcard *_test.c) -- 2.30.2