Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2233C636CB for ; Mon, 30 Jan 2023 16:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237794AbjA3QwG (ORCPT ); Mon, 30 Jan 2023 11:52:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236704AbjA3QwE (ORCPT ); Mon, 30 Jan 2023 11:52:04 -0500 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2610C3D92D for ; Mon, 30 Jan 2023 08:52:03 -0800 (PST) Received: by mail-il1-x12b.google.com with SMTP id w13so1276225ilv.3 for ; Mon, 30 Jan 2023 08:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=H5RCrcNjRn0IHRfMfm1ZofUiFxm+I7DHJWe0ZUOClTY=; b=Gss3kq48HUmg1lFEIIGPE+n74X2HZ8Qn6l4VCT1b1vA/Xq70VoFL5kb1aa+8bYPp5e 8bo1zqDYhO+KO9u2V+8CXQoQWPagVQHzWr/owccHj5SX4UoFehliDsPVk2aNETFcCLzE YqkztDfGbWS2AweNQuuidJNKeHuf3fyPExL2g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=H5RCrcNjRn0IHRfMfm1ZofUiFxm+I7DHJWe0ZUOClTY=; b=k2IwTmH01Me4YWvTi8rRoXtRAw9mVMY8KyTX3yxM3xhaN5/4NkWztENzBtT5UEfBhA 9UOqCX/YJdtgZkjE8imSICye0IFFxwzDzY52LGXyHslzKqO3PYppmFhkMS6XdLsPyAZE VgpyhExI2zWOGdSMJzPq9soKGWG/TKOhUBRiEniwf9wwmVr531x/ogUGj9Dp3IVip+Ck Uo2y4z31SMI6aaiiaTUWMCymaBkCouNfmsZ6UEyF+U9PSu3PZyRvIHKiIkI/D/W81I35 sA/olwuxh49FiSJHhJUpRK45Tal2a1Nl10aGlLnVIr4ddJx8o+g5AesQ+ONyXZPShl1u egDw== X-Gm-Message-State: AFqh2krZEtQ/uTTttpIL0lGZ3ImKP6V9+21uWmbvE2yW8YH9+Zyg+vRF lwgg6c+d2R55BFJs1GuaXzAV13X8ZUnkm3w4 X-Google-Smtp-Source: AMrXdXtIme1NJywHulBEJer3W+W3TG6mt5R9QJ9SD81kV6tJ0FkgbffaOPaqyVBHA80kVHjwcrlY6Q== X-Received: by 2002:a92:6e11:0:b0:304:c683:3c8a with SMTP id j17-20020a926e11000000b00304c6833c8amr7062908ilc.3.1675097522508; Mon, 30 Jan 2023 08:52:02 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id p3-20020a92d283000000b0030efa122291sm4185286ilp.56.2023.01.30.08.52.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 08:52:01 -0800 (PST) Message-ID: Date: Mon, 30 Jan 2023 09:52:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 25/34] selftests: seccomp: Fix incorrect kernel headers search path Content-Language: en-US To: Mathieu Desnoyers , Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Shuah Khan References: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> <20230127135755.79929-26-mathieu.desnoyers@efficios.com> From: Shuah Khan In-Reply-To: <20230127135755.79929-26-mathieu.desnoyers@efficios.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/27/23 06:57, Mathieu Desnoyers wrote: > Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents > building against kernel headers from the build environment in scenarios > where kernel headers are installed into a specific output directory > (O=...). > > Signed-off-by: Mathieu Desnoyers > Cc: Shuah Khan > Cc: linux-kselftest@vger.kernel.org > Cc: Ingo Molnar > Cc: [5.18+] > --- > tools/testing/selftests/seccomp/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/seccomp/Makefile b/tools/testing/selftests/seccomp/Makefile > index f017c382c036..584fba487037 100644 > --- a/tools/testing/selftests/seccomp/Makefile > +++ b/tools/testing/selftests/seccomp/Makefile > @@ -1,5 +1,5 @@ > # SPDX-License-Identifier: GPL-2.0 > -CFLAGS += -Wl,-no-as-needed -Wall -isystem ../../../../usr/include/ > +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) > LDFLAGS += -lpthread > LDLIBS += -lcap > Now the right one. Kees, I plan to take this through kselftest unless there are conflicts. In case there are conflicts and you want to take this through yours Acked-by: Shuah Khan thanks, -- Shuah