Message ID | 20230127135755.79929-27-mathieu.desnoyers@efficios.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848880wrn; Fri, 27 Jan 2023 06:03:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsJ/lUW3ntpT3b2VXUvPdBHZmOc4mGyTgO4NRaNFb5auB39rpSKIKjojw4Vaxar9oqz6ICg X-Received: by 2002:a17:907:a804:b0:7a6:5b50:a32c with SMTP id vo4-20020a170907a80400b007a65b50a32cmr47237191ejc.12.1674828202962; Fri, 27 Jan 2023 06:03:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828202; cv=none; d=google.com; s=arc-20160816; b=DLCW1Y2mxv13qB3dFVyapq6nQ8uUgFDYPJYsNO1dzd8nXtS3tAs/MqNC1NWCWARfUy iadhiQ/7x82XZeESp62LYMe5Jw/2U0aoWeCcTk93ibEL3VYtVwBntbY4O81/Ti55WASA unGiZjZG1mPosBSfFkSnnUaMqFC2/x91n7/Ev/YbBjLyqLEXdx9bj50jcAmDlC4yPHcG xlycKUTz1puq5OV9BgqKWcOOQ+I8jH4ve1Ikklu55vwKeKrqqQcVi3ZtQEBuxmnhif7g iZHxunL61ZUynWYq19znJphlOVnLkOQy/G1hY0UKaQUfAFjpJ945mNc7FevoAyu/dMv8 IbOg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rDvMpjoERgl4lGmd4uobpNErxPd3TJ4dQDACJ/EZaJE=; b=eFMjr7QZlRR7J6DVETwolu5PmIu7wTjrUgu9+TM2kv/BONnbla3r9ivEFPuBrwfZaC 1wI1rFrLBfHoaTYYWlXmZMJjujYqF81JhTWNeI981S2CyCd6fO8etMN508btoALvxGsY g8OIToXhRv9cn9tNkQInjYglSdhsEZcNMhpWPzvBZvDjm100CvkImpIAmKgAmKwzQ/xY 7j1frNAFwSMBmX6Vte+s4+TNLwM6+CW1x1VEVzLD2zrcUA/sKv5D0yr53dJm12C9v5G7 aoDe27J8kWBo7D6DOZiLa4pw5EUjujRVs+cExdM1ZLYRnUnxpRDd0p4ic8lFrsntS+gi Ik8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=JeX6khvp; 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=efficios.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090658c600b007c101c9237asi6275852ejs.668.2023.01.27.06.02.42; Fri, 27 Jan 2023 06:03:22 -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=@efficios.com header.s=smtpout1 header.b=JeX6khvp; 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=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234726AbjA0N7Y (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 08:59:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbjA0N61 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A687140ED; Fri, 27 Jan 2023 05:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827886; bh=Kpc6EgpaTbmW+YdqJvHq6vs4zdrzeV9OyaROIUWeSCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JeX6khvpaJeYKm8GpuU8g3zTnt2TzGn4HFP9CmhNzbhKueYzAg4PzNOtYwgI6t7ne m6B4CnsxJ1mJrubvpjUpywLDhFx4LHZwHNn2r1oDwWPdJGztRLMBR0Ivkfuimfe50v BRwt5zElFGjxzUodC6MoVt4BvlXmxBhigyjpQy2RQcXtYT3rYF3vNad7Mq8Wy7yLW/ F937TxFg8j+2JvkE6PwXtphpcW45BoK/bQxld26X8745QwKgAJ6hFa8/Nk99bRTWcX lsR8GHIeVdT+c9j7WXcSiq/Jl3oY8ClIeeNna+HQdvJWtGWVS8YGA0Iqv/A90yx4on bWb1s7hPvBoYQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z4YWRzhcw; Fri, 27 Jan 2023 08:58:06 -0500 (EST) From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> To: Shuah Khan <shuah@kernel.org>, linux-kselftest@vger.kernel.org, Ingo Molnar <mingo@redhat.com> Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, stable@vger.kernel.org Subject: [PATCH 26/34] selftests: sync: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:47 -0500 Message-Id: <20230127135755.79929-27-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> References: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184657484815987?= X-GMAIL-MSGID: =?utf-8?q?1756184657484815987?= |
Series |
selftests: Fix incorrect kernel headers search path
|
|
Commit Message
Mathieu Desnoyers
Jan. 27, 2023, 1:57 p.m. UTC
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 <mathieu.desnoyers@efficios.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com>
Cc: <stable@vger.kernel.org> [5.18+]
---
tools/testing/selftests/sync/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
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 <mathieu.desnoyers@efficios.com> > Cc: Shuah Khan <shuah@kernel.org> > Cc: linux-kselftest@vger.kernel.org > Cc: Ingo Molnar <mingo@redhat.com> > Cc: <stable@vger.kernel.org> [5.18+] > --- > tools/testing/selftests/sync/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile > index d0121a8a3523..df0f91bf6890 100644 > --- a/tools/testing/selftests/sync/Makefile > +++ b/tools/testing/selftests/sync/Makefile > @@ -1,6 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > CFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra > -CFLAGS += -I../../../../usr/include/ > +CFLAGS += $(KHDR_INCLUDES) > LDFLAGS += -pthread > > .PHONY: all clean Adding seccomp maintainers: 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 <skhan@linuxfoundation.org> thanks, -- Shuah
On 1/30/23 09:44, Shuah Khan wrote: > 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 <mathieu.desnoyers@efficios.com> >> Cc: Shuah Khan <shuah@kernel.org> >> Cc: linux-kselftest@vger.kernel.org >> Cc: Ingo Molnar <mingo@redhat.com> >> Cc: <stable@vger.kernel.org> [5.18+] >> --- >> tools/testing/selftests/sync/Makefile | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile >> index d0121a8a3523..df0f91bf6890 100644 >> --- a/tools/testing/selftests/sync/Makefile >> +++ b/tools/testing/selftests/sync/Makefile >> @@ -1,6 +1,6 @@ >> # SPDX-License-Identifier: GPL-2.0 >> CFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra >> -CFLAGS += -I../../../../usr/include/ >> +CFLAGS += $(KHDR_INCLUDES) >> LDFLAGS += -pthread >> .PHONY: all clean > > Adding seccomp maintainers: > > 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 <skhan@linuxfoundation.org> > Sorry wrong message. I am taking this one through mine. -- Shuah
diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile index d0121a8a3523..df0f91bf6890 100644 --- a/tools/testing/selftests/sync/Makefile +++ b/tools/testing/selftests/sync/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) LDFLAGS += -pthread .PHONY: all clean