Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1489170pxm; Thu, 3 Mar 2022 19:42:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2c4di02UscJCFF2r14NavJhgyzSt/Xw7ybkoDs8p7b8hMh9MFHuD6uInmuf0EIqInINFP X-Received: by 2002:a05:6a00:234a:b0:4e0:f776:876b with SMTP id j10-20020a056a00234a00b004e0f776876bmr41913941pfj.84.1646365356130; Thu, 03 Mar 2022 19:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646365356; cv=none; d=google.com; s=arc-20160816; b=phj2ThYGcOvDpuHhrrcHGOCZjl2PzJUPKfdalwxxAV649eZpmELtKOU773WRzGwbn1 cCsqEyZxYfxspHkkd1ZmXfTr3FxH4XH7AuTLNlDoYcZ5jfAwLtN6eiDc/0/9tMLeMOmB jgZVHd7x8HyjnpO2cVtoTRFkKHQjfQboePcbw1WOlwp2nsRsWP3hsFG4Cd15/qLRt51v IlEzX8oSIDOpTrL/WRC9jF+UVM8qslPUC06X3yq6Ojb35EM0YsPsVtMQlZ03BvCkXoPb x1RxlmSWpIfdcNbK4dGufrO/FsTFZr/U3kAJI7vp5lA3b/j+xw72ljiNq/cKaxEQUSgR MJ+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=GrVA4wCtJ9ZZHjn3qb/7bEScChq15mZGv+SPu/mtxIM=; b=MJ2/zUuLOIdsbvstoylN7bQ8IlTOMDUjq2l/5+oX3zji2iDOXGuH0ypPhdaP7/eN+Z SebCgX4ufzisVjX2csCCba6T17rjJIgOjyHhdS5gPxxuTlO4/b2C1qNrEZbQR7Bup0ec M09nuBtEk7/52q9DhT0j9nUAouG8QBrg5Qjk9fUxS2SD0i6/DVzSy2Y5AdZ19YIHAU+m 8AUzHxwwgpky0v6s63z/zkDI7DTJc7TwIUe666MKIlC+O7Czag4alsEgAbG9tGWQwuLD u6fGWpMYWnzOmUVrVIvbJQNQ0NL+H64pv0iqCg8Cfj1gxuEIuFCT9C10ztunkyQBfc6O hSGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=VCCqrS+5; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a63da08000000b00372f3e99ee8si3886758pgh.865.2022.03.03.19.42.18; Thu, 03 Mar 2022 19:42:36 -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=@linuxfoundation.org header.s=google header.b=VCCqrS+5; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236585AbiCCVk0 (ORCPT + 99 others); Thu, 3 Mar 2022 16:40:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232842AbiCCVkZ (ORCPT ); Thu, 3 Mar 2022 16:40:25 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024B3E1B49 for ; Thu, 3 Mar 2022 13:39:39 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id i1so5104515ilu.6 for ; Thu, 03 Mar 2022 13:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GrVA4wCtJ9ZZHjn3qb/7bEScChq15mZGv+SPu/mtxIM=; b=VCCqrS+5HnBr+1wxFMQSWauFi4Qp22D2JmhF5xNptWdbB+RRGVsOw0hr43SMv8QQSA FvZ+O4XYQKizNzZzSiTG6DT1LKtSG1W1CjmvdyiW4yNigLzrBVqP0UZvQuGRu9juEqcV N78vuK7UANHhsr7DbY+xfl5U00+fswtNYm4jo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GrVA4wCtJ9ZZHjn3qb/7bEScChq15mZGv+SPu/mtxIM=; b=c9qrsJrNACKKAf91piYwtSroS6R9T/df8Etc0Zm4m3lV6m5jTsyCI/awMxCXwbffwd f2Smh71XAn5ER5cyLWq3N4b/nM4L9Qk/a6mSGW5r+54MlqK62g00Yz0aAGIFd+h+mfOY v/28UYKURy2CNiV9tWRcl/i9WZHi9tcalSpI0lYuhj4alvNeRlqv0F2QAgWRBDNQQycG hyb/RE/22mfWKC9lR7CYp7zKDZpYAT7hY7IUVAHU3/+pPUSjtYcUO+kH2gCrFX+iE14s yxXs16fkghGcDEhUdl+46dX+kog8Zn/7YrOQ8MZ82juuVQin9QD/+tyJDc9EGwM1RbvQ cZXg== X-Gm-Message-State: AOAM531kjvl1OGrcg98Rinxu9YkOtBpkmXZGvIeUf36yIcHBt3ilKCYA DYhA0BZ1wdS51ONO1fMIY0K/7A== X-Received: by 2002:a92:c5aa:0:b0:2c5:f753:9069 with SMTP id r10-20020a92c5aa000000b002c5f7539069mr6683520ilt.71.1646343578331; Thu, 03 Mar 2022 13:39:38 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id f4-20020a92b504000000b002c21ef70a81sm3233325ile.7.2022.03.03.13.39.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Mar 2022 13:39:37 -0800 (PST) Subject: Re: [PATCH] selftests/interpreter: fix separate directory build To: Muhammad Usama Anjum , Shuah Khan Cc: kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20220303110629.2072927-1-usama.anjum@collabora.com> From: Shuah Khan Message-ID: Date: Thu, 3 Mar 2022 14:39:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220303110629.2072927-1-usama.anjum@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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/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. Either way I don't have the patch that added in liunx-kselftest repo: Reviewed-by: Shuah Khan thanks, -- Shuah