Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1643469pxm; Fri, 4 Mar 2022 00:13:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxc1rC4dlR+C2aExVCdxK/JHizmG/ZSfy6myBB3yzdKVNkgjHgMjT+Ry1CEapLjTO6Ei9DB X-Received: by 2002:a17:90a:e606:b0:1bc:4c56:b31 with SMTP id j6-20020a17090ae60600b001bc4c560b31mr9324206pjy.49.1646381609321; Fri, 04 Mar 2022 00:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646381609; cv=none; d=google.com; s=arc-20160816; b=su7bJFLaoUnH0if8FnskXjMO/Kn6f1tiRwpOV77pJdQqk6c93499nsrbyMQ084pd5W UXupptu+QO/GlbJoaqnA9Sb6PCvz48hRrEfopZPdr/M8DUayWq63OQL3v3UkkLmFqwIY u9FJskvn7qbEbv+L70BmxQK0jLqDYXFYp74Afh4xfEWK5jMl84mSiscOo4z8dk+urQ1L jyp3kPI+1tp0oqqqkAqudjVd4ww6Y4wcPOAjWoCsl+JI5SJ+vHH95HUnspPgr9lJ0tN+ GcBUsyRuETY+fvf/ZUjDV4+SSOtgsnmtUNA06xtgWxZXiwr3flcF+K4E8apC5P+4+PT0 J9WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=l4TB6AYzdwHdOZQ+dkPokDtxF0IbdSSXJZ+TkfmvbLo=; b=h8DrNjkLBZnwkzeu8hOD8bGFkvmJFC+SXntrwJYozHZPpCjajyn3svMhpqlBg7pFOc ug9TrVsS2hhAEEpQzHiTp2ysYiJ0wrojoHH4VsXFsvDe4UR750c6RsRc7kDs41B/A7Rs ClWbNKWt9Rmn6APMyp008XrJEXwL/zLzouIm8k3FXZmTPIXer/5GnsWq4QvHoU8giL7r Dogd9A0wrXrvBmjGH0XWX5c0PCjSLsxZ0KmvDHfC8EQnI5kymVmtcMCq+NVrj4tmzUJq NvZP9hk8Kuan7dIcPty/X1wqCtkXmaE40Ciy9aSdAG331w5qDiIZc0HakLi1pQRA7tR0 E6tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="HcyOm/Ss"; 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 hk11-20020a17090b224b00b001befd828571si6906623pjb.179.2022.03.04.00.13.14; Fri, 04 Mar 2022 00:13:29 -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="HcyOm/Ss"; 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 S238690AbiCDHe7 (ORCPT + 99 others); Fri, 4 Mar 2022 02:34:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbiCDHe5 (ORCPT ); Fri, 4 Mar 2022 02:34:57 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD5F392D3D; Thu, 3 Mar 2022 23:34:09 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: usama.anjum) with ESMTPSA id 489941F462F7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1646379247; bh=Np/FlMv0LvagWUomxrVN4lRvmbAry2baTlXCyY/V+0c=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=HcyOm/SsCuCpUsUrYY68ePamUb0QyNBDl9yFhEX7nZ8KCmGvFHygh400Kh8aPKhZX P8Zpga8/MFWVKwf3Jlp68FfPM+xYHN76sYxNaY68PkkkUgBHdLNsmMse5/L0MH1uNA GBkyAAR/xhdLNTK+G8H5fY3h4XWf8KQJ1XEivnq0YMlbFljKyxkY54dyuxTQleKEVt v/qzu+uaI9HuvtdBQWsLXG2R529jx1/kDdj7xRxtViDQ18QyXUhbgvA434b7bY0cEg msR49/PABocTbJMKgVJxnyv0dRGFKrnkQSlv6MCw3cVYAipHRA9fMiKQhTgjneQX1U 3bj2HILMQp2+Q== Message-ID: <660ad768-2437-92bb-d5ef-0ca8561499d4@collabora.com> Date: Fri, 4 Mar 2022 12:34:00 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Cc: usama.anjum@collabora.com, kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, mic@digikod.net, Al Viro , Andrew Morton Subject: Re: [PATCH] selftests/interpreter: fix separate directory build Content-Language: en-US To: Shuah Khan , Shuah Khan References: <20220303110629.2072927-1-usama.anjum@collabora.com> From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 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,NICE_REPLY_A,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 On 3/4/22 2:39 AM, Shuah Khan wrote: > On 3/3/22 4:06 AM, Muhammad Usama Anjum wrote: >> 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 >>   > > Change looks fine to me. > >>   src_test := $(wildcard *_test.c) >> > > I am not seeing this test in linux-kselftest next for sure. Which tree is > this patch based on? Please  add the repo info to the patch subject line > in the future. > This patch is in linux-next and its build is failing from quite some time: https://storage.staging.kernelci.org/kernelci/staging-next/staging-next-20220301.0/x86_64/x86_64_defconfig+x86-chromebook+kselftest/gcc-10/logs/kselftest.log I'm not sure in which tree selftests/interpreter is present. It was sent here: https://lore.kernel.org/lkml/20220104155024.48023-5-mic@digikod.net/ How can I find the tree from which this patch is coming? > Either way I don't have the patch that added in liunx-kselftest repo: > > Reviewed-by: Shuah Khan > > thanks, > -- Shuah I forgot to add the tag: Reported-by: "kernelci.org bot" -- Muhammad Usama Anjum