From patchwork Fri Jan 27 13:57:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846374wrn; Fri, 27 Jan 2023 06:00:02 -0800 (PST) X-Google-Smtp-Source: AK7set8pv02cTIGrRJS3j2ewF9dJjocTZoXdvWKm0dgjE5hdOIJCvF65dnIgEReVsgGsFXzWf7tW X-Received: by 2002:a05:6402:24a0:b0:4a0:8f4e:52dd with SMTP id q32-20020a05640224a000b004a08f4e52ddmr14538302eda.17.1674828002619; Fri, 27 Jan 2023 06:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828002; cv=none; d=google.com; s=arc-20160816; b=lEtIetHsxX48FqQa9m1HYKuBzExnJKO+hzrmIbZBUMO57VW4Jiz6549yHBlbc6vgy/ /Ovipj21voYlc6Srf1ARoK7l3rKWBZAWWTSoNxmGxYqlXbWZHEMsfZZsclVnyXFHjuS2 LytiLb7ZFOf7hAJke6V2kO+QGkA4rFcY0uw8jYGDA/lvw5l3OPZOBTSlo6fhf4brese/ /YiFKnRGDpENmxgEecffdsdYUFotXHD6cqx1j2Vb1APFdgWHQ0vZzlZxGCDZ8jIqVMXI crpJWNxSQc6UeXX6BsYRaJAEagrYexOnySEb4ybH4+MQLkGz1geoZlH4jLXxBjDYlADY Z4jA== 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=jGzZJjnXMomlCbiU0bAVCXvdAAZ3LWjO0UiLnru54ak=; b=J+weIFh9D9P7MQZJQrLeK8w7h7/RiP78ZQPWD3mTwO4JxSWMbmbgrvPAKpjvn8CZzI 83z4UIOipwYE/BK/j+qvASgyKb40eBmQbWXfAUL9AoxlkgKm3RhcBEUtwfcph9J55vHj qfxvdWtrTIJWrTesYe9R8czbICJsRHHWTFm3+Eivw/6kA/teToBmXprGu+eEbZE5deve gMe2CLF6On8OG8MnRsiYELAOOlxQ6gwZ2nGc78kehycf83RsukA35RXBVwc/deCW/vbd 1fUI9srhWKhe/uY3TXLr95iYeaK4G3n2EXFALdq5N3TUvpnAEoPgAl0X1B0LvmEZUkh2 MYTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=OXTtFhpP; 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 f8-20020a50d548000000b0049e05407b8esi5921198edj.136.2023.01.27.05.59.35; Fri, 27 Jan 2023 06:00:02 -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=OXTtFhpP; 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 S233810AbjA0N6W (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbjA0N6H (ORCPT ); Fri, 27 Jan 2023 08:58:07 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6437F3C2B; Fri, 27 Jan 2023 05:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827881; bh=/r5DrLF/JnnrCyCX+xyiU+do3tg3tLC+bmepKRA47SI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OXTtFhpPzdgYG0kWDxPuCWBOGn63bUivm1Qkx8RL2J1DKR6JezXMTe57Xb0u1Woyk duXtqsizw3Sk+rzlOfaVTFsKD3vF8YOfiIh5a8l32QiISEwkxtcIgeWz8ChyJA58rg b5IHx+VJzziALJI9w5RORpbA/Mi+klhKLRtvdJvcqf6FYAlcp73xAoXhSVaZ3Erulb ZrSOmGP5eUSBvYtKoPDLmzzUnaa3t2Bmu2VCoEcPWjzUVrtzw2NZvRT9dlTLunqkCd kT2TyJSr7HvOYbf4oK9fB7JMruYfgk3gOdxaC6PiwdeAwoeaukjdYi2XDo9HnCF5rC SqJcADq/6/Icg== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0T2SkNzhT6; Fri, 27 Jan 2023 08:58:01 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 01/34] selftests: arm64: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:22 -0500 Message-Id: <20230127135755.79929-2-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184447563572605?= X-GMAIL-MSGID: =?utf-8?q?1756184447563572605?= 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+] Acked-by: Shuah Khan Acked-by: Catalin Marinas --- tools/testing/selftests/arm64/fp/Makefile | 2 +- tools/testing/selftests/arm64/tags/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index 36db61358ed5..932ec8792316 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -3,7 +3,7 @@ # A proper top_srcdir is needed by KSFT(lib.mk) top_srcdir = $(realpath ../../../../../) -CFLAGS += -I$(top_srcdir)/usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := fp-stress \ sve-ptrace sve-probe-vls \ diff --git a/tools/testing/selftests/arm64/tags/Makefile b/tools/testing/selftests/arm64/tags/Makefile index 41cb75070511..6d29cfde43a2 100644 --- a/tools/testing/selftests/arm64/tags/Makefile +++ b/tools/testing/selftests/arm64/tags/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := tags_test TEST_PROGS := run_tags_test.sh From patchwork Fri Jan 27 13:57:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49410 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846700wrn; Fri, 27 Jan 2023 06:00:28 -0800 (PST) X-Google-Smtp-Source: AK7set/ZZ47ZCu/DTR/L4JdqgwiZE/iI7Htk0/n9DNu1H11E2YAgqwqUqCODJXBOvq3X5+KDxBAB X-Received: by 2002:a17:907:3e90:b0:87b:dac5:eb86 with SMTP id hs16-20020a1709073e9000b0087bdac5eb86mr2245092ejc.22.1674828028720; Fri, 27 Jan 2023 06:00:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828028; cv=none; d=google.com; s=arc-20160816; b=EpJkgrJvyDWeAKKTP2uLGYqMQGyg7DbE/lu3Tuop27oAmB824HynDnwxCEWqKX4qY9 mLmBCGlT4Ppu5vjE+ip/P7H3sS31oE8YBsaEt8A0Ms+ORRMmug+xdZt9Xo6HwuFveEDy b6qm3UHorK33B3GVHR07UM8yEgSEpHgC0TdlSlEhuG4p3tPgjsyyEUYYwTcQcqXzWUdi dpYC5UY+cGsfnZzlPn+ykjjuAd/W3rOYBnW/b4blB9at7kKoStM3dHBu9IB3BpiWRhiZ 7NCBin6q+kiAQh32y9P8mr4PCHHp9NNUhrzhP6yPE8qFdnit5JOuPidJUWrtfy4/WK+d XB8Q== 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=83Tw6YAyIKj4BkaNTzfHH5A8bbxwiYRbJYIRe/NyYmY=; b=cbxMykM54MxY+b4lX64Db/u0BEcbZ+rSJ6mufYLJlk4DfoqJb8zkJXbZKSGQc1YXOg GA3cjglX22vh/+y1vf/G2tGzZ/i/0uGwZiehitfe2mwTNOxsu/gK0+0D5C7pU89wIXZ3 XaYWOkoIHOUr1oCTHtXCfnJjqgxnGUOgBQru1kMYtjDA8T9asxP13v1YjCO74CBmPvSU sL8cbntPW+a9r+nDbs4ZlHhwI0rh7dJSLr3YsWezXhxFAt0LhGeCbU8uj/FulleU65AK H1SdMyVyQD55UTYPdhaFq8+6p63vTwogqPIeo5X8FXj/O6Zw7ymFHOMaPubK72dhimTY DmBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=RysuPHCt; 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 fw32-20020a170907502000b008778924dd93si4538911ejc.918.2023.01.27.05.59.58; Fri, 27 Jan 2023 06:00:28 -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=RysuPHCt; 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 S233770AbjA0N6R (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233493AbjA0N6H (ORCPT ); Fri, 27 Jan 2023 08:58:07 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C76F55A1; Fri, 27 Jan 2023 05:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827881; bh=NTvVtxLLbeLVXq8WxJE95PgnDlR3Xl0NO3dxx2J8GXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RysuPHCtLlPlqo5mT+og4dspKqX/H0sYpROyzZIuhBkQdpU4ZlBpTU5tJ30Dx7fWB l951DGkZw3D/ZY8DN+kC5oqH6DFOvPqXijPN3EgSLzHqNqNLWVs9xMqFO3uTyXr3j1 6OO2CWFHM8Mv5w3z3W6rINZ/Tx/14nDK+Vk0vNNm1QGiC5crNned+VyX8aVl9Xt/Ri o/XKqFsSyECpdOITtsRkc7OrVwyCilzgkJBs2AHzQUILaa8zeskKM6BU0p1Ov6WyW6 PJ9w3mrMRsy241Jhhe0sDEuNurNVTMJe9Fw3HMmx1B6LjyvDhHFkfZUVTe8ZQCGwK9 GPCkKkejAFanw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0T3xg5zhT7; Fri, 27 Jan 2023 08:58:01 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 02/34] selftests: bpf: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:23 -0500 Message-Id: <20230127135755.79929-3-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184474985271198?= X-GMAIL-MSGID: =?utf-8?q?1756184474985271198?= 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+] Acked-by: Shuah Khan --- tools/testing/selftests/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index c22c43bbee19..6998c816afef 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -327,7 +327,7 @@ endif CLANG_SYS_INCLUDES = $(call get_sys_includes,$(CLANG),$(CLANG_TARGET_ARCH)) BPF_CFLAGS = -g -Werror -D__TARGET_ARCH_$(SRCARCH) $(MENDIAN) \ -I$(INCLUDE_DIR) -I$(CURDIR) -I$(APIDIR) \ - -I$(abspath $(OUTPUT)/../usr/include) + $(KHDR_INCLUDES) CLANG_CFLAGS = $(CLANG_SYS_INCLUDES) \ -Wno-compare-distinct-pointer-types From patchwork Fri Jan 27 13:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49405 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846308wrn; Fri, 27 Jan 2023 05:59:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXtjSAk2mAfA96pWj87WvZoXsETyhTUY75OcsaVY83wI6P12U3sJD7WDTUoULsOXmfyOL5rf X-Received: by 2002:aa7:cacd:0:b0:49e:20f9:4ade with SMTP id l13-20020aa7cacd000000b0049e20f94ademr40042433edt.10.1674827996013; Fri, 27 Jan 2023 05:59:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674827995; cv=none; d=google.com; s=arc-20160816; b=SdtCW2McSnMEIM1cvMwpKBIiw8ZQ9CEovolI8MhnPyKv6EoQDgZim+OTdZ4ocKO/Cu TAgaa8v+dwT9goR/KomlkdB+qaw7/6uuDCnK1anlw21NaMGHhmXgtxPqlOnRQpxjmZTx lvBvIfmRTfmI8k5uLVWGAKOhzwQWCLKPJzyjJ791hfBToh01ObQW8iSSIPbo6U6IoUhk NMEOaBtm30wiC96/doWWyog2viLqobhILQa0a3GIYW3UKiUwsJfO/beJshE+YVb4GHFY KQb7q587mG3QZa+MVGmmcwN66oLbCVJr6gTLo/zEmbJsM00oPDeQxs7JUwLriq2bfOFn PNGw== 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=Zc4SWGgsofgpkWXkAAUGbf0bbOBEMxPLT5yq8KjrvnI=; b=d/vq53HYm5dCZdLKV6K6JuGgHSsrKG8CrHsW7LPIGbQlAm1gnePqBvutWLBzL64nJA QzveplFZg7fcSorMpBkyppfOE3C/XSmRAET/Zmh21dNzVcTeuG3VkDnannvYpSA2h+Dm Es5gimxViMoQhxnjgIgCEbQ0jO52Eh1XoCFw1V5fauzVBmQtIfMwxhLoKyu8pLzMXeAa L0wjdm7mrVsgkfn71IYJ3IVfi55pd3EQfYCgOaPCy59/rpvi9LwcO3rsROU56pk0y5Br bAM8G2RQgllL52DkdwPRr1dm/d+WHs240IgEzV9x5ca8e3uHt9qGMNw0ujwmteYArhny nAJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=mQl6h6aj; 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 uh6-20020a170906b38600b00878529e9d49si4581882ejc.573.2023.01.27.05.59.27; Fri, 27 Jan 2023 05:59:55 -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=mQl6h6aj; 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 S233734AbjA0N6M (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233479AbjA0N6H (ORCPT ); Fri, 27 Jan 2023 08:58:07 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D4AB40ED; Fri, 27 Jan 2023 05:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827881; bh=ZcCKW7xHONk6lQkmDiIQ6FF58ak31qhSFzWiuXDr2hE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mQl6h6ajedQaMhcvhGLSEeGTiB+LP244YHTUh0QwRPLf/lQeqdklGNFmgnU1+7Tab EX+MEIw7zp/t8lW2Uw/XOFoWqmPWBK8KKnYYXrEM7UEFpD4uud1/JGO1dR+eZhyGKb e2TPY+m8ZRZxOqgGoEggAWS9yp+IRySGPDEYznCAKaLl/A5e7miInF/FLDEv3lNoh4 IXq744ROYHlE4+xeyYveQdLCrdnU9V5UwToAXNWEhrkU72VlUJ7Ptdq+iRCaBxP90v 1aZ14YkS3crvxCt1zJ+zM8FTfGYuyttIkBkyCKgOEKkM2I0IU48U1cyrE49aSKLxV4 CVlScCdUtk7Ag== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0T5NPszhnn; Fri, 27 Jan 2023 08:58:01 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 03/34] selftests: clone3: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:24 -0500 Message-Id: <20230127135755.79929-4-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184440543927978?= X-GMAIL-MSGID: =?utf-8?q?1756184440543927978?= 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+] Acked-by: Shuah Khan Acked-by: Christian Brauner --- tools/testing/selftests/clone3/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/clone3/Makefile b/tools/testing/selftests/clone3/Makefile index 79b19a2863a0..84832c369a2e 100644 --- a/tools/testing/selftests/clone3/Makefile +++ b/tools/testing/selftests/clone3/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -g -std=gnu99 -I../../../../usr/include/ +CFLAGS += -g -std=gnu99 $(KHDR_INCLUDES) LDLIBS += -lcap TEST_GEN_PROGS := clone3 clone3_clear_sighand clone3_set_tid \ From patchwork Fri Jan 27 13:57:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49430 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848761wrn; Fri, 27 Jan 2023 06:03:14 -0800 (PST) X-Google-Smtp-Source: AK7set/a3FjLLJzvZYg8Fa47aktwTVSutFCErwISadIMcjhzc22WHs/O1DMJhi1VZcIkHR+SoULx X-Received: by 2002:a17:906:4b01:b0:878:5f8e:26c0 with SMTP id y1-20020a1709064b0100b008785f8e26c0mr5915692eju.7.1674828194536; Fri, 27 Jan 2023 06:03:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828194; cv=none; d=google.com; s=arc-20160816; b=Xd6F8TaEaXgvGcHKsiGVOLLI8e9vBIqGSa6M8d6wdOJOOl2U3OseOs+GNa2cvlECkK zlRDG+t542mn5LXOgfs9Qsk7Owww0dM36ngFFMpT/7RkVhRmljmRG9kgjj+uInAJURIG ob2Ku3PXsJCkU8dhOWi2lAW27MPJzAcCpaa/60VbxJ0oNkeQ1xhYuN3lRk8vmziPRueH HciESoQ1ctZWJVpgRd0Z6uXou3hsOY5sbUBZ0CfUk4eivuSkbp58hSo24tRP8ZfN1iIz fntQ9YXZUJb4gW/nxdzJCEmn7lywAgMVM8v5uvYEgtXaBi81a41ffnECP1xzKQfmdfZS CIsA== 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=hLta7suNSq0ZDOy1aQGtvx8i9bvpEzRqhXjErgb9/eM=; b=mVBG7mB3SomYLN11UhIK36B+2L6Gh+AkrShbCzYaakycMhtHGV4a2I+idyqXnWJ2Vw H9U2Of5lBGoxuAUweTypeqXNJYDRWIKpcCtc2/oGw0RzJEoBaE9XJqQcG48TYaeP1UB1 UOpp6FnGJdS2+7B1qMbky1Dkt093FDDn2dOW8y1+XPYE3i93PQuG02VkeAQzlb2rr5xC XjS3T9UgCB/44aEw3m1QuD9wsxc5BSEVyuf8QTJKY6cpFdl+aBPFXfMx2xcnoV6RFDao kHB27v7CG6u1T2Huxy7RGxTn0qZykYsFa2FKcxQAIWEnjoA9phKDtznE/fMoNW0xrxjF zi8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b="FS/1CtiD"; 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 19-20020a17090600d300b0084d34979417si5852798eji.323.2023.01.27.06.02.34; Fri, 27 Jan 2023 06:03:14 -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="FS/1CtiD"; 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 S232021AbjA0N6t (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233538AbjA0N6H (ORCPT ); Fri, 27 Jan 2023 08:58:07 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA155B8D; Fri, 27 Jan 2023 05:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827882; bh=K+vhjlywHJgIcCErv80HSw4PprVSDZXcXHTvoqMwzts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FS/1CtiD9ZoThxVxcGeu74sgRZzAhb0dHuqe5ynvzTx9QGIiP2xCrnzOYI8em+8Vy tWptOoiXdiJzgcRbwrF+OGDiTczOJWYvRIXssRfQyho98bpSlJRyr1cK6s5fNn4p/T Xni7F0OmeixP0R1KOSLNKoAK/TAfE7OP84sM9ZGfdLK5PljJMWFm9e8+nd0Vp2MjLC fM/Np9UP25KAICDrKt5HFL7IS+t3WFhzNCWpEGHmgPK5lll+Ls4QLah+/M1qqSOd2b s0BXyCXv6QIOuPPJDMJHDKOPLJP1lJl+TeG6a0dApov0jzD8SyowRJphQTE+m0MFwp ynQOglEmPKl2w== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0T6xF3zhWW; Fri, 27 Jan 2023 08:58:01 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 04/34] selftests: core: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:25 -0500 Message-Id: <20230127135755.79929-5-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184648846291124?= X-GMAIL-MSGID: =?utf-8?q?1756184648846291124?= 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/core/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/core/Makefile b/tools/testing/selftests/core/Makefile index f6f2d6f473c6..ce262d097269 100644 --- a/tools/testing/selftests/core/Makefile +++ b/tools/testing/selftests/core/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -g -I../../../../usr/include/ +CFLAGS += -g $(KHDR_INCLUDES) TEST_GEN_PROGS := close_range_test From patchwork Fri Jan 27 13:57:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49418 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847276wrn; Fri, 27 Jan 2023 06:01:16 -0800 (PST) X-Google-Smtp-Source: AK7set8hnp/tobBCW7lX0y0kNRJiNrsO0fnxUKRRSJeutbHUGjhShXnZgWlkt/HgwnPKg8JB31My X-Received: by 2002:a17:906:d0c2:b0:878:5fdc:3850 with SMTP id bq2-20020a170906d0c200b008785fdc3850mr7074791ejb.48.1674828076395; Fri, 27 Jan 2023 06:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828076; cv=none; d=google.com; s=arc-20160816; b=eLnqvEwMMltugnGjoEnavNpQSRCXCg5blgZjZQOKceF+N15qsNN5QrZhyOhhwRjASf z79Imqm2LZu4wCrLraLDshmFLFI2lYjppuq/O1eW+YgOm1PZ/K0U7QuFA9CkkEKH7ZPI EP5ic5aHeadihtjs5dHHAo+Tkm4UurW6WgkFA4Tfh+cPbpXlZ3e/cRPQB02eiNO1iQtC G7sXo5f6RjbkCexNtmkeVbBlpzOMhVyo7WQlO+gEIOzbrYPGVJuzqLFFC+qws8yYFCyY V/87+7wqTNKSf3FJstDKIRpjOrD+Sk/wbM8FPutr3N2b2OaCsTWOyZpBpJ/zoMy43897 chdw== 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=3ezcXQWq1Ga7BQBdUt82a8/HPJGPnHQzW3gIgMKoqoA=; b=xrxpC5AawoDvxrKHruWOtOeww1cNA/zYqv8fGUqUJrtL9O9xTTue27qeT9uwOXmLL3 UNooNctaMW0QFh/HGvH4sNLdbETrMRFUjDs4oSbdxW7gS2QvXVRv6nVejRiIkP7+4dzc yZAbRege4Sq+wxb6Sd/dU/AX5aGMc1B+5MO/UzoALapSPAMLvXO5XKN3Yx29HMkLF++K pYA0mO9kI+ROkhFDd0bXZrbeRcySE0kTrYFadVvpQLCtdqTIdlN27fJmYEr0plnUbJqs BzlaYjUpt/VKZikXXr0pzhafB4o0pbgG/55epVhF8zZ0YFOE1E9Gb72dg2Rnj/EdBBbP KLyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=R2FtjY5B; 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 fd10-20020a1709072a0a00b008786508c01dsi4395421ejc.216.2023.01.27.06.00.47; Fri, 27 Jan 2023 06:01:16 -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=R2FtjY5B; 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 S234344AbjA0N6l (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233632AbjA0N6J (ORCPT ); Fri, 27 Jan 2023 08:58:09 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81068F744; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827882; bh=DQfwUmfs5iNfdjrcPzg0HaVMYofBtZ0lo/V3C+VzwwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R2FtjY5BDlGSDq3Tp9GCd33whMgy0KMIfA0rbcQs7ZIsF5T9IftAhcL5SrNlOPv6Q tT6XCJh/7Dmx8xCBqEOLV5HgSqj8BOvTms9i8zhkjwlQAnpr+lBdz2BTjeM9KAQAlG GSjzadjtZ6jd28/CP3LIqvgR6rcoDx3ehwKmOFBk2YUqEvHfDmKnT1RgxcuZC34f5R q9cxhz7HaXL2Th/1LkRtksF4tZs1c0g+r7qbN0lzQljypuA95dFX/Sjc6ZEqw1nw+3 ARmRRn5d5qqf8UJqFBIqJ+wuxXUyeV6KvfhRFlz0WTGQfcDwHfef6hsgyEB57vbX6p eNUfMINnAvz0w== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0V1MFXzhWX; Fri, 27 Jan 2023 08:58:02 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 05/34] selftests: dma: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:26 -0500 Message-Id: <20230127135755.79929-6-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184525092698124?= X-GMAIL-MSGID: =?utf-8?q?1756184525092698124?= 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/dma/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/dma/Makefile b/tools/testing/selftests/dma/Makefile index cd8c5ece1cba..dd7f746f3e84 100644 --- a/tools/testing/selftests/dma/Makefile +++ b/tools/testing/selftests/dma/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) CFLAGS += -I../../../../include/ TEST_GEN_PROGS := dma_map_benchmark From patchwork Fri Jan 27 13:57:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846441wrn; Fri, 27 Jan 2023 06:00:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXv0iGJqAKmKsi1Wre7/mqx6N2W0BVTeDCpcO0c9fe4+bPRF3WI1+LDGDrDojXBfe+eO/G70 X-Received: by 2002:aa7:db8b:0:b0:49b:b274:b816 with SMTP id u11-20020aa7db8b000000b0049bb274b816mr40674745edt.37.1674828008402; Fri, 27 Jan 2023 06:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828008; cv=none; d=google.com; s=arc-20160816; b=i8RCMY6thVwQCYJ3sSZh2P9bcPo9VvlkmBK0EzFsSTvNAiv9wSy3V/qg1xh0ZhzuDY iU7oPaTKyyqZW3DHK464GqtfmVjzLwJAzk7WG9ddexuqjJl9vIVVqseMFYJAPJtZpRO6 blik/3SSPrLccDgZmNDbIz9cLGTqsxCCjMXL1b4nL9vhgjlhsr3wZvkzWwgb+eubOG47 zmXlU261Bbnu8LKQCsrpDXAxPqNWf3uayWPvp6qtP7Mih7d73gIfyQPG6fRlBfkpbAZd YeTPhRUzIjRkPW/KRRXYKnQwSq9yQ89xcpeaMg/2v1gSJM4bltZ0I6i2/o1bUkXVdE8F Uqyg== 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=foOZElg/it7CyruetmTPdS0TnvaghXvAmzU0AWuXxKs=; b=MYORsuf+25S8OXLAPsoXG7SfRbMMwJSD350q/AX+08EAneNWhM2u7dm4ml86jqUQyb KB4C8VyymD1gNcmDlH3xqGhYwTiUDjbvxetORovIyK6fugQROA2Vo4ad6a4kSiRkJG4M zkLXBqDBL9CEKseacvdmziBq3GlGqIU32nB4WDPOA1ohCnKV74V9gqzckezfKAJDaaga 9i4aYdiRHzVxBehwHX14n9nuFavA6tEVfemr9sWfD5ueBB4g4M/mR7IlKFOsdAMfToA8 VD4pfiqw+tZQwZU9NGbhVbXJZchI5oIy8vqLNouMiCQHym/VGy7cy/zC12MJefC/dQoz sOtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=ZukGHJ6A; 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 b18-20020a0564021f1200b004a08aa8af4bsi5401616edb.509.2023.01.27.05.59.39; Fri, 27 Jan 2023 06:00:08 -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=ZukGHJ6A; 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 S233881AbjA0N61 (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233618AbjA0N6J (ORCPT ); Fri, 27 Jan 2023 08:58:09 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C670CC33; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827882; bh=O7TLRnBFvO2mHHa21PT6sPp6oCHu3V7ypNifZtvavPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZukGHJ6A7yYm6vWBR0x6cfQeDJ8DOdZTmdLGkp7msE5Wh4164c19x2crtPcxPqmKX gwLw6MU42H2bTzJ87s8H8rdU03aGPZTfaUhOqd7iCCHLRxKjz3yIXwliEUG+DeZvNQ lGFI70OLj2FMAsYtWOtSmeYBqOgBByvnpd75xBkdICM6NEefPvy/qbBAJL85c0tASM rW7uvJg+Ke8ZoAdTu6JwUwsuS5O1RKa5AYGMWpCE0u6OPq8fikECrgi41ncg2IFXZ+ 9A3poRmFvcQC8sm8WuUahTzU3FVLg8SUZRvh1ESR79lG19F/VZDhpLIwHtk54TghjW ZeiwqRH7M9rfw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0V2yJXzhff; Fri, 27 Jan 2023 08:58:02 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 06/34] selftests: dmabuf-heaps: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:27 -0500 Message-Id: <20230127135755.79929-7-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184453704306830?= X-GMAIL-MSGID: =?utf-8?q?1756184453704306830?= 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/dmabuf-heaps/Makefile | 2 +- tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/dmabuf-heaps/Makefile b/tools/testing/selftests/dmabuf-heaps/Makefile index 604b43ece15f..9e7e158d5fa3 100644 --- a/tools/testing/selftests/dmabuf-heaps/Makefile +++ b/tools/testing/selftests/dmabuf-heaps/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -static -O3 -Wl,-no-as-needed -Wall +CFLAGS += -static -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) TEST_GEN_PROGS = dmabuf-heap diff --git a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c index 29af27acd40e..890a8236a8ba 100644 --- a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +++ b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c @@ -13,10 +13,9 @@ #include #include +#include #include -#include "../../../../include/uapi/linux/dma-heap.h" - #define DEVPATH "/dev/dma_heap" static int check_vgem(int fd) From patchwork Fri Jan 27 13:57:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49415 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847199wrn; Fri, 27 Jan 2023 06:01:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXsnIAo0Y8uaXUDcVn+OuFQCXg4/wOZJ9d6vzNWuSk9X1MF7YNvcaOvPPRbGryDhWnJZfU1t X-Received: by 2002:a17:907:6746:b0:84d:1c67:97d7 with SMTP id qm6-20020a170907674600b0084d1c6797d7mr48904367ejc.30.1674828070479; Fri, 27 Jan 2023 06:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828070; cv=none; d=google.com; s=arc-20160816; b=KWS3UtAvfPosZSqbH6sChwMxSbmhiXNimj7bPcoYKu0aYQ9VLBfEjpsDoPe4n2Yzeu jXDxqRR3CvHjlPM4yIVgeRS6Od7YmHJGFrEq9Dh6lTEgbeuXtgKsP5jC0JjUQVWclyxJ aZ+Jm2NfrzOo2Snh5/QLPhC9BinCkxKZytJDJ4IDz4YiKPRKYJXBWrBMzaJiwQRleSIl 9gPWTh9SJtBNYBFGBzwVDAcV51I5hqKsHxmGdt4EXHNEFnA4nhx80r0+wq3xFBbLZGwj bqRsxTQo7LQgA089L4LAGWcxXSVW/d9GEtayNh0yCC8ADwgibRAu2aP5St6fZjY/VvhC HHfQ== 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=BNtgctQvXbxV6/hgDViXWBzrh+01XRsrj+2RqnCsizo=; b=ouTbRshQWU+rBHNPwKpT3bK1VAGlZW3u3cNWVb4B6bDkUxWKX8BqtOffUWOxAJNR9L 6GJze5SK9j2dn4VC7Z0qZAPNmstiplKmq59EcRuoqQeoI5x0v2RuMlgA8a7bV8u8416V JCdpPWMP1U9asBZ8jVmMogN5r78KJ7tWIaIJXyK/Y5B9+szeK9Jnb3Ggpr5G1kOIpPIt 0aneKk/ltfJfvNGPfuBg0YFmO6JOsJ3zPnsszfhIr5KeZabAvvddPInW1Wou2/2XcTcf 1sQs71R6qbRORJP7zPs49iWPaPaET/MqBQjoPW8q79qOU4r8juyKaWruVswQYNPtt6Ih SOAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=EcnGZEJo; 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 lr12-20020a170906fb8c00b0084c4a806258si5197807ejb.645.2023.01.27.06.00.39; Fri, 27 Jan 2023 06:01:10 -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=EcnGZEJo; 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 S234109AbjA0N6z (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C5C2C64E; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827882; bh=9bTL5ZQeBBSKQ5ZimARCBa1khFOkkbpLsDUnEgWCuIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EcnGZEJoJAKMoQ6YGcaurO9muRAm8BgZzowAuvJgT3OMtpzqufgatyjPu5UBE2RW7 qV+wYJLZvU3X1szhg3knmG5zbLyPfpNA/mmmF9h0PzzSRzPYeH2gB0+vQ0fImzP7GS ljm5JvxzEMRMC6Od0Rq4r2ytF+8ZoBo/waFfQheKFuBDl6o5CA7M5UjK4/53LuqAm+ ZLiPZATM5ysEd/Tfg50M8rZqtVG7o1jpGPTud2AY0x1ck91GnGl1v1FfaKoe0WoJeE C6gArTqQhEGPpesqy0gVYjvLUswdn66ludIz6gO55D3SJgTmWPf3PUyTrOCFoBGbiG 0Bk/Mh9V+81JA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0V4PnLzhxN; Fri, 27 Jan 2023 08:58:02 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 07/34] selftests: drivers: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:28 -0500 Message-Id: <20230127135755.79929-8-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184519195415127?= X-GMAIL-MSGID: =?utf-8?q?1756184519195415127?= 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/drivers/dma-buf/Makefile | 2 +- tools/testing/selftests/drivers/s390x/uvdevice/Makefile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/drivers/dma-buf/Makefile b/tools/testing/selftests/drivers/dma-buf/Makefile index 79cb16b4e01a..441407bb0e80 100644 --- a/tools/testing/selftests/drivers/dma-buf/Makefile +++ b/tools/testing/selftests/drivers/dma-buf/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -I../../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := udmabuf diff --git a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile index 891215a7dc8a..755d164384c4 100644 --- a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile +++ b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile @@ -11,10 +11,9 @@ else TEST_GEN_PROGS := test_uvdevice top_srcdir ?= ../../../../../.. -khdr_dir = $(top_srcdir)/usr/include LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include -CFLAGS += -Wall -Werror -static -I$(khdr_dir) -I$(LINUX_TOOL_ARCH_INCLUDE) +CFLAGS += -Wall -Werror -static $(KHDR_INCLUDES) -I$(LINUX_TOOL_ARCH_INCLUDE) include ../../../lib.mk From patchwork Fri Jan 27 13:57:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49409 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846530wrn; Fri, 27 Jan 2023 06:00:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXtMH6/IcN4/kF9dG3O1Le6preIQPmxKqNHGH9FQocEdauAHKGYU9WKPq4kZ5g3hhqun4ac6 X-Received: by 2002:a17:907:1710:b0:85d:dd20:60a4 with SMTP id le16-20020a170907171000b0085ddd2060a4mr42776316ejc.40.1674828015469; Fri, 27 Jan 2023 06:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828015; cv=none; d=google.com; s=arc-20160816; b=OWr0PHR1u4Bpzp44w3Kc1GdumyQum/1Bbpo8/ys3Ob1jY0BqtEi+lwZTjzXy4dyFPG GW34Y0+fz9Rwn12DMxp8GDgKWY0Ld5hxWuYY85zrH0YqaGvqAq0+OBu5CSAQbhn9P485 AT/+z5+8hh9RWsbkJ5/DeRJKD8oo6rhwQB+EjtIEzjeA9ASHEOmYkAP/2NM8Ct9tkyO9 j13wNKJzrNCJD8eJKiOcxpRukiq5AW1q03Ls1rqwesH5JNETf3jTd42q3v6dye/UNnWT nA/JjaM+1Az/Sy8XYO1mdGzLB8kbfAkRB2g24gJrqK+4h23j+YTPw/DI9hEA3L2twEX6 i0zQ== 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=/UOE2OZ/dc6iRwvuZi6q23Ix0MmiN+E+MqJgEN/17vU=; b=XknY2bUz5wygUhyQ9P++bgg72r4JHptIPL/nx1i0md7qGZumG2+bbDRaIl8kkEixBP kq4+lNymL3sIiGg99bvf/FTMMut4KApPCEhR+jaPonzBEkahua6k65mTPjMytYtR4OAh zTk5gh31m7qrayobi/pW5G2bW4S3oB7ZdaNB0Cm7M52vyWl1/uVZlWxBhkk1FMYVKbFV yFLhxCDIpXyUNiKeNv+26TDWBuyqQGan3G60cY+14gENP8Yo4Bi4pjtY6rfjMYFTpddU b4XfftC+OyjFs9zWSApE+UqM1Ak4Q/8nCbqTHMPWJHnOiRvF1zKsa2VzIqm3P0xMWCq4 UBOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=nLsz4Kzv; 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 m3-20020a50ef03000000b004a091cb1537si5602893eds.450.2023.01.27.05.59.48; Fri, 27 Jan 2023 06:00:15 -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=nLsz4Kzv; 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 S234058AbjA0N6a (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233622AbjA0N6J (ORCPT ); Fri, 27 Jan 2023 08:58:09 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C7FACDE7; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827882; bh=XtGhJWHrIaWJmV8UD8TraYwxhka01PtAUbXZqWumiTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nLsz4KzvjEDDAEPZ5TbIQgq61r+oyYiBsMCemJfhx/FMU9kMTNU1Sqkg1hsqczaBY WI8a6n42m+9s0ytw0j7whkl3cYKR0cNLLNPJJmpqOQpeTrFpIQ3aggsHfnrW4qQB3v 8ckIU3tIBVB4mVdbyV3iH+KKVSrG19aC2h0B/cjZTsBLBBE4YIwhmUaa0fB3NctXuM mlPnxH1ef8gIyXjZRLSt5VtPNKWnrpvIWdCl22EuRI4oV2REjSPNMO8SSzDyWfZ45b AIcAatPvJLinPdUrTJFsSZCMjwCkIcoiaiSEgixM8m3enSXVOLRc06qSnLQBxEIXCz 93ymKr1Ds8KXA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0V5wCxzhxP; Fri, 27 Jan 2023 08:58:02 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 08/34] selftests: filesystems: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:29 -0500 Message-Id: <20230127135755.79929-9-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184460932456943?= X-GMAIL-MSGID: =?utf-8?q?1756184460932456943?= 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/filesystems/Makefile | 2 +- tools/testing/selftests/filesystems/binderfs/Makefile | 2 +- tools/testing/selftests/filesystems/epoll/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/filesystems/Makefile b/tools/testing/selftests/filesystems/Makefile index 129880fb42d3..c647fd6a0446 100644 --- a/tools/testing/selftests/filesystems/Makefile +++ b/tools/testing/selftests/filesystems/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := devpts_pts TEST_GEN_PROGS_EXTENDED := dnotify_test diff --git a/tools/testing/selftests/filesystems/binderfs/Makefile b/tools/testing/selftests/filesystems/binderfs/Makefile index 8af25ae96049..c2f7cef919c0 100644 --- a/tools/testing/selftests/filesystems/binderfs/Makefile +++ b/tools/testing/selftests/filesystems/binderfs/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ -pthread +CFLAGS += $(KHDR_INCLUDES) -pthread TEST_GEN_PROGS := binderfs_test binderfs_test: binderfs_test.c ../../kselftest.h ../../kselftest_harness.h diff --git a/tools/testing/selftests/filesystems/epoll/Makefile b/tools/testing/selftests/filesystems/epoll/Makefile index 78ae4aaf7141..0788a7dc8004 100644 --- a/tools/testing/selftests/filesystems/epoll/Makefile +++ b/tools/testing/selftests/filesystems/epoll/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) LDLIBS += -lpthread TEST_GEN_PROGS := epoll_wakeup_test From patchwork Fri Jan 27 13:57:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49421 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847613wrn; Fri, 27 Jan 2023 06:01:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXsRQcpL3rOM2YIKa0knLVtZQBbbCBqgIt7KJ7cZr4JAOKPPTaZi5vFFsS4kJoglDdvIRExm X-Received: by 2002:a05:6402:430c:b0:49e:50e:1553 with SMTP id m12-20020a056402430c00b0049e050e1553mr57735760edc.3.1674828101754; Fri, 27 Jan 2023 06:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828101; cv=none; d=google.com; s=arc-20160816; b=ave+wuv+5D7WbBrNr8X7L0VaiofVtg5+VH63xU4WfWyKTYmwHbeg94OyICH6grnu/+ oDmBLDhy+/Klr7u/uLolE8gZVIRWes1V/GLUIEnnBaaijOIOrH9kQNdyziZpj90Ish07 /fJ84Cwb3e67TyUKLr+ws9Ft8P+7xyDA8N/R2lneyLyNl2W6U7zzWldUoLX5sTqiQx7D wEYm6BdwxlHraODtmEeO9hm+7twT1N9rJV8mJuF7X4kXo4Uk5mDrlZRdMxVnGVvaMs7F NPw9yBkCdsxcsq1cR1kT2eMQY6lzNop3qwx319FBbytn59nFudRBkS89uu8dp1k9pmEk 5akQ== 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=/R1XfwZLQE7nGc6n2UkShnWEJhMA4XHnJ3+0eS8bn0s=; b=kH7De3W8mQUvJ74JkU3Ei3j1M28oXL2RzaLdfEEDh53SuRdOjO581hem4e+3yaecAq weKMhlSTHtFFvHE6DBojCCpaNaijO1tN+pVQdACJDJfixQw5XDzY3PvqPBcSOaWvNJNt pcyTuBSZfGgvFgEkZJcSn5A38tM2/8+/gvAVSpw3XarTNhdAEGOIoXO10pay9JQZ8yTP Qmd+KZyRcHIDhrreuF9MfwjUwDGV1vc1fnpiN2AoZuljFTmiaOty8xO1YkGutdpHiBB4 DcJDeAU3AG6aKWn7bWPDo5/ITpU4umGSvG1D2dtsJs8YM7ro/3BNstjgSSjrHz+H/BtV h5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=iWZsomuv; 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 d5-20020aa7d5c5000000b0049e5fecfe85si5153170eds.508.2023.01.27.06.01.03; Fri, 27 Jan 2023 06:01:41 -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=iWZsomuv; 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 S233822AbjA0N6Y (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbjA0N6J (ORCPT ); Fri, 27 Jan 2023 08:58:09 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F008D537; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827883; bh=Vf6h/Rf3BvGRTZG9RMp4qPzreXRmHs4w6M44ZkRD1eE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iWZsomuvA4qjXFhNRr2IksfNnEHLneiCIcbAY8NWxKfyOx+B04UHol8toTkpmPnOy u24jz5uK4QbXpD9U5+2tI69gMrQBl4nwRin/6XMfVF48nBVlknonQ4ZC/zgDInYAsK niu3BHyEyncJcFBDoITBTI9s4yVBbJrzyN6KCQPkYiDDceJn89ORa1X8rpnU5sxjKm sEQEcwCOJBNmCBT5VYLE7a1bm+ecMfBFP8JT0kFVPB2ZjXbU195p0PK/wHj+DoBCQD VjB8bXs48TtH730IjCj6VckfRVEJx7BUoNqTWsTWR7cC4l0OraXhEYxDI8EPEyHyWI 0Ftl2b9kEceJw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W0F5mzhxQ; Fri, 27 Jan 2023 08:58:03 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 09/34] selftests: futex: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:30 -0500 Message-Id: <20230127135755.79929-10-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184551865900211?= X-GMAIL-MSGID: =?utf-8?q?1756184551865900211?= 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/futex/functional/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index 5a0e0df8de9b..a392d0917b4e 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -INCLUDES := -I../include -I../../ -I../../../../../usr/include/ +INCLUDES := -I../include -I../../ $(KHDR_INCLUDES) CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) $(KHDR_INCLUDES) LDLIBS := -lpthread -lrt From patchwork Fri Jan 27 13:57:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49414 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847077wrn; Fri, 27 Jan 2023 06:01:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXuIySr08q6wrBZHTGVZ5jylV7dbwVkwBs4YVZmNIGu5lYkWWtDffWfgep4H17o1ojFNFAyV X-Received: by 2002:a17:906:15da:b0:870:9346:ddc9 with SMTP id l26-20020a17090615da00b008709346ddc9mr40286380ejd.45.1674828060914; Fri, 27 Jan 2023 06:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828060; cv=none; d=google.com; s=arc-20160816; b=Vq5MdB9CgVaRCLW/RJDVhfn8jpuv8vO2lhN16gRrzeKnmU698HXZ4VF8kt4U++E7sP GKwToLvgYsnyIYlSW9nPQ09KEnv2nS3fBa+LCooMDY4M6OJ1cN8SMV3FbmzoVgLgnVI+ 6EyOyK+tJnMNvZ+9vIWpWMqO+TtEK4/gJSsmKKLDah/dNf8wCPSGC7RPbFbM2C9qLQ7f enw0eQHrf2tYJaU8w+6zo3oKmWpDLdaGCKRRq6h+41InHWMpSf/gFjFaY0EAAcmmKUx6 j+AoxCKLeuqjqG3+zCLSB73IHo9rJ1Nl2unLgSGmCShp0Wbg+kjlNfIW4K5B9QWR6jwn CCiA== 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=byRodcm5PNwX9Gz6bNdahymP1wxCqBNOcY+Lrh0+k58=; b=VNwtICLpmUaqFoo/1KLKqAg1O359/3Qfav1VZTTfL2rV8Yix7OWB/GtWUGAbzCws4c HZxei12im3ZGIp3CPOVgrR+zwD8U26PtSvA9RvjcND3/mkiKZnPwnj/gqlBNiGP8uD85 RsHFU81u4Dp4cZDKjpQkmZDjgJMySQUuIXWqAslShyArNfQqeFvqYw5CibDRDqIn401f oAHwC0gzJcgLNlfVS20SVJS0/DHZjG6/640XUoPln5rWO27WWXXkVWITDMdoSuSvn9jo IL7JAEGRalRZxsZu1LYHMvtWPl3mChKuHp3A6+dac7VpOPdKt8PThoV73QVg9b2Ja9zI Buhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=eJNaHpwT; 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 j20-20020a170906535400b00871d0c97cc3si5510106ejo.856.2023.01.27.06.00.33; Fri, 27 Jan 2023 06:01:00 -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=eJNaHpwT; 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 S229819AbjA0N6x (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233570AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C280AD01; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827883; bh=IhXZwbH9ktv/dEf9uFv1NzjVJcdyJYqLUNMO3Hu94j4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eJNaHpwTD2oKj/vFfPBGlUJ5M/irnK9gdTk3slYxg/SYKiYE/aqKGTQnaWZ4RZbr8 LeIxJeuhsTXC89irI5RYb8WJ6+CDBZxuEvd9Emz7XDwNKNactxdinUCqGY0JVlTd1q n5F+aS0jijsojJjT6olrZyakfic3J5dRdhROK/xkG0+mHDHDpj5rOOXYAx19uD+LBp 64iriksr9ix5P6k+mmOQQM/auX9Dta3CZ+I9ns7JPvQVQEFxYo9dekJ4uu2Q0Y215J JZqz8cC9v9Llo/vGeVshORjPAXZoy0iKafK50LlQ4nipcc52xt/KyzRPrakJs2+w/R aJBSc7JTI/uyQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W1kpmzhWY; Fri, 27 Jan 2023 08:58:03 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 10/34] selftests: gpio: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:31 -0500 Message-Id: <20230127135755.79929-11-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184508767463544?= X-GMAIL-MSGID: =?utf-8?q?1756184508767463544?= 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/gpio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile index 616ed4019655..e0884390447d 100644 --- a/tools/testing/selftests/gpio/Makefile +++ b/tools/testing/selftests/gpio/Makefile @@ -3,6 +3,6 @@ TEST_PROGS := gpio-mockup.sh gpio-sim.sh TEST_FILES := gpio-mockup-sysfs.sh TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev gpio-chip-info gpio-line-name -CFLAGS += -O2 -g -Wall -I../../../../usr/include/ $(KHDR_INCLUDES) +CFLAGS += -O2 -g -Wall $(KHDR_INCLUDES) include ../lib.mk From patchwork Fri Jan 27 13:57:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49416 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847206wrn; Fri, 27 Jan 2023 06:01:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXtxnY5caCQIdQ7z1BMdqmFsT1FDBGQNoBYKw+I2lTXOAgLXrtSbmH25hs4YDPUc79A3QZ9o X-Received: by 2002:a05:6402:f20:b0:468:58d4:a0f2 with SMTP id i32-20020a0564020f2000b0046858d4a0f2mr49647760eda.23.1674828071201; Fri, 27 Jan 2023 06:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828071; cv=none; d=google.com; s=arc-20160816; b=C1wuDVka2d/Vge5j30UjiGewigv8lXryqolERZW0rEfTG84fEHX9oa/hQUs2kr+WTM GvClVp9EOz+J0ZNaggCaAfNVEDDTHKIYMObsmKcmEtbUDhjpN4UVgKHoGJyBt58GvRqA nMloJnkRHkpXnZZSeXvfKSDEO5wWdvaQV2UXAzU+AfCwgyZt+VJszqJTeI7BMTUpJ7wd hg4YWxE4ciPeUYmMHbwQ2BRtxzVpTwI3iMErcWphrKWlfRD6VNmkrTq5yBx7novHK1Wx lMADXbZF4bxnDQ87Jebu0mbtdiq2hxabQPJekp4dIELGJKj8BZV1pCJltfjggJxbmlby I4Tw== 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=jSm2bx/9TizBFIU0FEbAXhLpaX4+9+GRDgESiKJE0mY=; b=L1j2ASUbW3GGNLmQLA9RQxTl0+QcpzyAfTxyAgEyNzkOvm0uX08rDmqBUs0/u0lp1h VUrlVrlY6pdK3EAYyPkACBR32oWYkD0WFEBJo7dQZ22f+4Paql1tY7OYWHFG+dSjbWkN iD5PcKszGESk5B+D1qgWDOw2VTTHADTibb2mPjPqgBrT28mVD4Lzpgly2hH63c41Bx7t 2vYgh2H1wXJzWlLaBxfUCcWUFiFr7B2jBM81ew0mgDT60L4XX71fTYZkq9FzbYYZNJMV cYooaBeoSLFc9oGaK8apM6+gtr+K2eT5H9NhFlUa0Y83kTKdHHzm4dTiHJb77ItFUIdC 1T5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b="vSk4/jSk"; 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 v18-20020aa7dbd2000000b0049deaf9d2absi4914451edt.126.2023.01.27.06.00.40; Fri, 27 Jan 2023 06:01:11 -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="vSk4/jSk"; 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 S234207AbjA0N6f (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233656AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7A313C2B; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827883; bh=7etrW8iE023GQxiA3Q3KlSxXSNyXYwYwDLENTzRvr34=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vSk4/jSkUPe0tq1mFNG1JdvtfPkyBFssFtI+OjcZs0M0yPOeor8aInfgmMElEW7NK D9Zi6yfX1MykyPhi3dxnOM038eaKPCL5qgr4KxKEs8lwVqvdw3YaSjnDg8ZhjNTd5P Wgq3UPtJFTyJVMDrwS3yCRkBerX1SXMJCt9GmnB0yibcL4bRzC/h8fhz+wdYRpfU65 VOyq2qwhIUn2QuePv3F6n4ocFvHtiPsSImBEKsRr5LGZ6DM9oBs0PjKQ5D2fEHF3QV IqtiKFM6/UdDvjkD4kLxfJpRK0WLpTiCOpGDY2R7/COv/cFt3KAoI6XUEUjxqmjBjd +ZJL3QKTPSRKA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W3LfTzhxR; Fri, 27 Jan 2023 08:58:03 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 11/34] selftests: ipc: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:32 -0500 Message-Id: <20230127135755.79929-12-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184519600906555?= X-GMAIL-MSGID: =?utf-8?q?1756184519600906555?= 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/ipc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ipc/Makefile b/tools/testing/selftests/ipc/Makefile index 1c4448a843a4..50e9c299fc4a 100644 --- a/tools/testing/selftests/ipc/Makefile +++ b/tools/testing/selftests/ipc/Makefile @@ -10,7 +10,7 @@ ifeq ($(ARCH),x86_64) CFLAGS := -DCONFIG_X86_64 -D__x86_64__ endif -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := msgque From patchwork Fri Jan 27 13:57:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49412 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846899wrn; Fri, 27 Jan 2023 06:00:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXs7Z+tXVYCIe3ARtXZ7XoWxXpSSUQ8U/+oB0kbWNeKsT+Orhgw1pRwNU6x0mgE7XvaBIU+s X-Received: by 2002:a17:906:514:b0:7c1:1ada:5e1e with SMTP id j20-20020a170906051400b007c11ada5e1emr40079180eja.26.1674828046167; Fri, 27 Jan 2023 06:00:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828046; cv=none; d=google.com; s=arc-20160816; b=ghCBq6FKw719Cst70CxT2sS60g8G33yCRl27pdk05Hr8ip1elGnI2X7SRh1bt+FmW9 Dl0ngjyJ7z/lxLN68nhvo4SBju3p1UCe+Mvgj/T+/Xi0GDfZKeGfAOOvriPL+rKpslaL VCThyKPhgh0axEmCGqlnU8jSxzWw3+NjHHZYpQjfqoEZfItheOCRQgk03zVqGSJQ2uNV RbdYdO3YyczzIvPaCJVvqhqHiHr0oQ2rQN55StpZZcMnXDLx8zUs6oBPk/+1AKxFleYY jg+m24RdgQwAZZQNW3WEDOADw95SUUxeXLArcek9W8+U/e8XUPUZnEgIYecvokpwk7c5 mSQA== 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=nOlr0Gv0yYEANwd4QTimyAVwbA3VnyHxep2rjEfta3Q=; b=y1/pgWyFayAhvavSDYim/VqW16+k4zhw/PRGQnC5osL/4fCO5hdxYrY6XlpvNNT55b wdVyQnObRy/v5ck7UotqE5nYcFpIIjqBxpt8Ah4LiuFoJWe7elbD9uflqiTZsQhUHD50 OpuNIb6x10LOUN7dH7lIYDoGEADZBsFyeV9uEewH9zANoyOQ20dXf7RDu9FHaiJHpdqG AsWp2NqcgqlSPqVOPATvGocjOm/ZVWEdT/gSeYoKh2hXQChBQX2RLJWImIVEx8+WdAlG 8m+rjplKloyQZv1M9G6m6zrdQ+Y1iYtgbv52nXsyri6eVCZaeV/f/HAuAJDyjjmMP7Ii la8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=gP03Mi02; 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 ka6-20020a170907920600b008787b6dd91bsi3744964ejb.493.2023.01.27.06.00.16; Fri, 27 Jan 2023 06:00:46 -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=gP03Mi02; 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 S234293AbjA0N6i (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233654AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89C540ED; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827883; bh=6qm7wk7SUWVKWvdRjS2nUvbIrWez68nKKOk9YkW3yBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gP03Mi026Ip5lZprMZD7HrDPdLu68cDJiSL5zj/yVbhSbKT0gHmVKMuiXNCkjk1Oj BYFA9Lzexf2vhBJic2Ac8Xdb88AlsWvmTsaTleiJpiuAyzRwDb36AA44gS71PgSt83 6HtfERAaVPs4NEyXcSx9gxPZylEVoBO1gLb1t40AjnZBsS6+AeDwe3uBmpeBBQq5g4 QxHiqR3p4jhlpXXEQbFDQBap/LyK60ULDozbSZjl57yi7cI/AMBSF+6FWyVS5JPst1 HIiIIk//JFjoFp9pYahOTUUvdcMTiqtEiEnZoMhTGTuP+7RQr8/7514Gw4EdF6h3lu KP25M00JmUL9w== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W4smKzhxS; Fri, 27 Jan 2023 08:58:03 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 12/34] selftests: kcmp: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:33 -0500 Message-Id: <20230127135755.79929-13-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184493087295441?= X-GMAIL-MSGID: =?utf-8?q?1756184493087295441?= 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/kcmp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile index b4d39f6b5124..59a1e5379018 100644 --- a/tools/testing/selftests/kcmp/Makefile +++ b/tools/testing/selftests/kcmp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := kcmp_test From patchwork Fri Jan 27 13:57:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49413 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847072wrn; Fri, 27 Jan 2023 06:01:00 -0800 (PST) X-Google-Smtp-Source: AK7set8AT8nIwZ6R0YITBwBt9PebCkjhtFASN0aY09SGEeqROwQF+BkEYyChXbTHVUX5LxrxAGpz X-Received: by 2002:a17:906:4e06:b0:878:6a5f:341a with SMTP id z6-20020a1709064e0600b008786a5f341amr5078655eju.21.1674828060090; Fri, 27 Jan 2023 06:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828060; cv=none; d=google.com; s=arc-20160816; b=x/qubaARiI32qa9GtlByiepAi9NPvdTrwjD1mPPTLPX/iK2fcemmcIzXqQNO95DIA9 mEd1bQmKovZHhkDU7Nr7nu70Rq8uDzwh0C+zpi5eVtTBCloXEvdkmH8fGgX/JoDt4LSi BTEYN95I8GsAfMSlNDrDwro34nRvrC3MC0LOf5u6WXJnuVm6Jmbdww+Tg8JD+Uciozkm ol5tKBFkmbg9Fe4r9LS+zMPa8WXxBGnMGwWvUxqegFiPXsmrdcxw1bjX6pL1DiJ4Jd8q XuQHD4SV0rp+bKUmeFYgjtFEGrj0H0zxBa40orDGUFASEcwLTLulqggar18laadj8haQ Fzkw== 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=TXFFlRViux15yRPWFU9cK3wYm08Oy0jOtT2NC9iB+XY=; b=wEg9LKmSbeApw1qt21QtY+Sr5ZORVTJQx2zG3QRUvv6uEp9m4riiKg8FwVuEZzSg58 NFhKIBnsE3GrSyMya5D4XSYfnQ/WTNKsULt0dlxZIyFibVbrPr+HzJZIQWPBctBZ67zq 0tAcd5y/5fa2FYWgi1qU8gHYDks2mphmw0ue1+Te3cGG8RlFalCrjYbRWBZXOWmixkNI vkPwSPcB8HZ0fmeem3XummRBcMNcFcNZwEjs8+VQ+kFBVjH/7NlgWHtp13Sl0rau9rA3 1drzlAiUWOyGrc47XrgdrSDMiHJsX2psphzskd3lbtvXdSkl5LAPDseCMcDdoNuWYKEU Vh3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=NUs6hHu6; 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 fs22-20020a170907601600b0087bdb523367si1105872ejc.222.2023.01.27.06.00.31; Fri, 27 Jan 2023 06:01:00 -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=NUs6hHu6; 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 S234390AbjA0N6p (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBAE76B1; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827884; bh=Hovg2rLgtOn0+9QtiG9zIieTKyUfb4MTHQUMXrteeb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NUs6hHu6zSApBdm2LEHPcGuHogc7yhJt0t3IHrhVa78nTEkJSTZAh3uNXr6U8BevY /4uN6/LAdnTsYXhnuwz7gqeD8+Sqa5KLyXohzV/Aj6zotBqRMAtE+WtTW3hmaPyyxz C+UOSSAhLqdHKX9OX0cKSmezJFpHv6VhGqVWdEv65+3Yq8b9Bk3Kq6+6N/lRoulSz+ yB0mIGQ/tgRS327T/SUMVNDwCtI3kD4Y8MhDQnF/hxwREpYPfOTm9guCL8hKLNY+E5 rgKXQf0J/h/NgMd9lW3iH1ukG5NdwIXOwvVhTkWwN7ZxsWqvFfooIjZdi2hIsOzN1s 9tJB+V/Bd0iGA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W6NG1zhWZ; Fri, 27 Jan 2023 08:58:03 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 13/34] selftests: media_tests: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:34 -0500 Message-Id: <20230127135755.79929-14-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184507637942868?= X-GMAIL-MSGID: =?utf-8?q?1756184507637942868?= 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/media_tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/media_tests/Makefile b/tools/testing/selftests/media_tests/Makefile index 60826d7d37d4..471d83e61d95 100644 --- a/tools/testing/selftests/media_tests/Makefile +++ b/tools/testing/selftests/media_tests/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # -CFLAGS += -I../ -I../../../../usr/include/ +CFLAGS += -I../ $(KHDR_INCLUDES) TEST_GEN_PROGS := media_device_test media_device_open video_device_test include ../lib.mk From patchwork Fri Jan 27 13:57:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49411 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846843wrn; Fri, 27 Jan 2023 06:00:40 -0800 (PST) X-Google-Smtp-Source: AK7set8J+qXFYUM59n4WdgFgqjXfHU6+qPPPePEvhrjIM9AlutDoI7CMbdZXLQeJlU7jk6DkzsgP X-Received: by 2002:a17:907:9491:b0:878:5524:e932 with SMTP id dm17-20020a170907949100b008785524e932mr10032534ejc.5.1674828039918; Fri, 27 Jan 2023 06:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828039; cv=none; d=google.com; s=arc-20160816; b=KKRb2/g7xwk9Oq8ueA/qo4tpp6dvhYPanU0bJT316CawnOa0u2kFz+Sl7RWm7VfLM3 HR0hQ/9hbeVCs6WAwznGbo9idw41YYpTmh5oqBvvozEVTrJrzyqXMUMocfNYNDlBZ/qA /NEWDU8HLKVBEPdYounNQ8St0S0JTnNvLw8br6wxTYv2MfX6LxG20tm72Hq++895/VPA bgVF3Xk1IqgWMW4rlFlnWE51hyWAmwvM9aoW9C7m/27epUTpUMIzCEoSFEJ+SoY7vTV0 KtCdf2V+ZgsbaWsBAbIu1rRdGqAIKhuZ9J/hJ3+YCMDVMbesN88shT6u7HgJ820uSZK8 XYQA== 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=j3KQ6R0RPfAdU4qmwLW9KAMgJapfNby6Un772MUkyDE=; b=Ig4qZ3r1nHXDkDBXD11fkbPuXjZhiuOQPVA+qbOyZqy5ivScED248OaMnqoGl5PbBZ fpGwuou3jiMGbOFWN+Y4KuLEp/9xkC62ykKu3MIzHjs7DTMEv23BgC3NibyOJxgUlys1 zhHCIkOimMmGeIz6prEP3iokO8DbEgAJWz6jLJnTBBGzXzHReOqjfu75UyHzF1ceOU7b yAGqpfEfCpjgIIDWLmhtUSWfo2rtlgTpX8v+GgkjsyucEChy4J2TGOgbhIakj+yys5RY +HB1l+UzMmefTzkGC/bjSzyfzhs3c48qozwgg2tng9F1V9ooJVS9KXwMs4UkT8+8jIpv Blqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=ihvUcKSq; 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 u16-20020a170906109000b0087881d61e2csi4203524eju.452.2023.01.27.06.00.09; Fri, 27 Jan 2023 06:00:39 -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=ihvUcKSq; 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 S233704AbjA0N6d (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233659AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC18555A1; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827884; bh=sA4M3OkjVCW8xxieTK/u4Mba2o99GV9rRi2ALGoRhik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ihvUcKSqS97yiWo6UXgVR1PEVNk9peScMw9s+PpbdjBG4cdJIi9jDibNQu0aHoGpk AHjPThY/tlXm18EsHG6gr+9+6a6s922YpjfQqY3/Ipsm+MqxHQ2JAyMYYWUzHtYYWB ygwg1unwFPOA4Ry6x+sT08cRorXZRadIZCYoQmmmAhxMHbHOD8RAe6U6eNsVMZ5PNl oOuMGw/PyTSgeRpLlgzWsy+aNnkf83i9BwlsIUKMfZk7eFmogqJ+hmNkT9CbAQQRfq JELCGFvsycpz4adFkfPU1RaVgnXwFK72jbziKprCZF+GjKkuMIp/zRavOeI6fZ4AIn MfZrIm/it11Cw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0X0nczzhxT; Fri, 27 Jan 2023 08:58:04 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 14/34] selftests: membarrier: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:35 -0500 Message-Id: <20230127135755.79929-15-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184486770118652?= X-GMAIL-MSGID: =?utf-8?q?1756184486770118652?= 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/membarrier/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/membarrier/Makefile b/tools/testing/selftests/membarrier/Makefile index 34d1c81a2324..fc840e06ff56 100644 --- a/tools/testing/selftests/membarrier/Makefile +++ b/tools/testing/selftests/membarrier/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -g -I../../../../usr/include/ +CFLAGS += -g $(KHDR_INCLUDES) LDLIBS += -lpthread TEST_GEN_PROGS := membarrier_test_single_thread \ From patchwork Fri Jan 27 13:57:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49419 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847607wrn; Fri, 27 Jan 2023 06:01:41 -0800 (PST) X-Google-Smtp-Source: AK7set+FTIfjctmS3mnD0VO9fkmY309oDiMG2//qKTsjczx2XeEERsbbIRZ54u+mqZ/karqjble/ X-Received: by 2002:a17:907:16a5:b0:878:81d7:9f6f with SMTP id hc37-20020a17090716a500b0087881d79f6fmr5942411ejc.67.1674828101676; Fri, 27 Jan 2023 06:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828101; cv=none; d=google.com; s=arc-20160816; b=XtEBelSrnBony0T4SPuzoF23E6xCp9DsLnjv9fxR9FoOFYQBWzuUtiwJA/am+diKUM p/RG3tRUOpJ4FTlTIP73SNC+LDzSdzasNZOodG2D7snBBKl2TIw9hDszS3CYb2Mc2pvZ H0f18PdSy7YT5vTjzyaqvyd9740DGomrje63Ko4bfDrDSs9x+ogrlk3plfMGLBZFhtRc reCIhkujgX9gukvD+2sRJcFi/ntIZWDfUc5jz69qf4+L2EjBnW90Rf33inl6e9omENca 1AyXeinEewB1mb9yj434Byz7a9owpEQD4PZs/DCIHIVTP+nhp8oQaHNIzgAnkgNKApFB up1A== 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=m9YK4jpZTd5pjMNS4kVYnHYB1R6pY4S1VhXCSMFc0Ps=; b=uz1QmNX99/iiMp9bXs/+02B96zyW1NeLYoUMa+My+VILZwWw7n6v97oYw0IwllhhEb zey+pyDBzumleS5YBrNDctUTU8DRSFf+CT3XZueVF2nYN1GH4+Jl94QEZ3PjXvRBcFMz xkCuED5vw0TDmk0ut3QDKie2Q1JTCjTBBS5L8V8uk1eqV+2131qCMgsNimP+/TLsfFdP 9o9PQGnb3Tx6dKgBDV/1nuEgxvUGZ/xPW7kZNoXAWzfnrQC6hGiGtFT9ewdEPsPZY6L0 ogOgpJlx1sXTiT6EExWBsWeLpWLPtlt7n9IdO/ancUxe81Liaxv+8O9iQb45Pb+Ra1P9 ZJ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=JjF8+kmJ; 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 n8-20020a17090673c800b008787c8674b5si3936175ejl.786.2023.01.27.06.01.07; Fri, 27 Jan 2023 06:01:41 -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=JjF8+kmJ; 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 S231863AbjA0N67 (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233713AbjA0N6L (ORCPT ); Fri, 27 Jan 2023 08:58:11 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6858F20D3D; Fri, 27 Jan 2023 05:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827884; bh=X6gVbqQlq737cstg892yXIS/G1E/XkRwPcbdp0ROAbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JjF8+kmJVrJNh1BuPF8a7WG26h8d0kqr13MoaFIKAQxS+OKmGP2p5Q2Z18JdIYP/S d4wZYVM6AiQCAxCNOmh2AAnZ1WKr+Ev5VF6FYZkklNBnoTWrlW+DIDy0+P0lo2mTpL KuixJarRjopu+5bsZr0viXpK1cZaOsR61fziFIq2aYXq5Jwa1dDEvRUCfIQUuiFWrA 7B3uoSO2lUc5qx1xdqbstzrBTc+/A0hrvo9YHGPyYjaOBOaIr1ED5l0p8PitV9s6ay YcKByRqda2r1VH9ZEletCr4YSCL9fdCv4tdfUgiK+t/8LCv72a2SaL/IndmdJmHDCw LHNZfQDYhgzXA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0X2LMSzhWb; Fri, 27 Jan 2023 08:58:04 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 15/34] selftests: mount_setattr: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:36 -0500 Message-Id: <20230127135755.79929-16-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184551711605196?= X-GMAIL-MSGID: =?utf-8?q?1756184551711605196?= 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/mount_setattr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mount_setattr/Makefile b/tools/testing/selftests/mount_setattr/Makefile index 2250f7dcb81e..fde72df01b11 100644 --- a/tools/testing/selftests/mount_setattr/Makefile +++ b/tools/testing/selftests/mount_setattr/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # Makefile for mount selftests. -CFLAGS = -g -I../../../../usr/include/ -Wall -O2 -pthread +CFLAGS = -g $(KHDR_INCLUDES) -Wall -O2 -pthread TEST_GEN_FILES += mount_setattr_test From patchwork Fri Jan 27 13:57:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49417 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847274wrn; Fri, 27 Jan 2023 06:01:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXvshtvnLiM/lGENJZ0t2iPeOFchH9dpaxqqQx4I2qVTazFWgzSH6elzecq7BUvJCDuiEQCU X-Received: by 2002:a17:906:684e:b0:84d:3794:5748 with SMTP id a14-20020a170906684e00b0084d37945748mr36557222ejs.9.1674828076393; Fri, 27 Jan 2023 06:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828076; cv=none; d=google.com; s=arc-20160816; b=r9oxS6boWJ/BRvUvH9gVf3z9WSYmUe82WkvFJFxOxrNQFoqnGTmXk/2PVgkAVrYbMc s1IQNI8CU8jjn2SzMoUr/uREgi8GaNVTtMmQiku4G68Wl15WWYnSLpVIgTww/GoZdf0f yWPKgGCvVe1mojVtLYFzH8iayF7uxNp8DzmETfJQiENUskLZEKIFDS+JR/DtSNldT9Pz kFwfigSHcDZaKfiCe8GWt96zCRHnJmBKZY4oHzlJvf1gXR9qvfCk97KUkfooauo68ihe e2rMKbSrSNAAuKRynt7IdEIEM0WURDNT/3BI7+PjA7vqrki+4OujbvbuwUA3M6HlvKfP f98A== 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=dcqXVFkcCxl1+oevze40zLIxVvjoSGiWV36R0UUonZs=; b=fQO+QJ4UDblmAuCQ+jSLqiRMrAdcLzas8gjPJhQIaCcTfydm4PXmRTg37K8GEJsR+2 sMO+ZWkTVtS7kof5xyBwNn1MwESnbWnSMPI7PKi8FuOPa4pVgO0cCqx/qFIJ2u8Jk2Ey sepmMD80f3DWSChPdygFb7C86I09mXFBOlQ5fRarcqA5UJ8YI9z8JvpLJ+9FETZrSyHK G73C7xlfOnUqd3hPfQurUI6r+sRRliHREQE+VyIwZTCnPI2jU1Wky7hKaEzhAn0L3i6/ JTeCVm1T6f3EQ1pfaxWqfyWOTJBiSA+jtUpMiNqjuhg23lBeisaFiG6k+o5fmdwUlnYE KC2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=jv0ybvBu; 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 fi5-20020a056402550500b004a20c90138bsi1674173edb.553.2023.01.27.06.00.47; Fri, 27 Jan 2023 06:01:16 -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=jv0ybvBu; 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 S234602AbjA0N7R (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233739AbjA0N6M (ORCPT ); Fri, 27 Jan 2023 08:58:12 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688582197E; Fri, 27 Jan 2023 05:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827884; bh=k3Z/Eqp3e8HyxFyohB0vGYb9ihS+11AAagQRfVUvXCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jv0ybvBusQbcS1LsrWWsK7bbFqIGXNAoSo7I58/nh8B4SvrDZz0BpRTpgIU36akLb lHBA28sJT/rynLoy0RCC4KsdCtqAb3lBVpNN6MxdJIv214RjTBzrz38LMH4CQ5MkLF 0j1PqndXYTop1JRH8diTjjeyhSkS/CRwqMbwV8DflReQnvq50hk7aWNsDYjZTBwicn LK3T2xj71BTWuiTS1RJaa/SvfFJMhewAkpBn2fFbkdrCq5ONJM9qZvSpqNj5dE5kCS hadmPm0QrXGPmkMk6aoyhktcVAueNy9AtSsk8NbWqE17cPi1NKb7iD3Pi/5rmu52YB xKZ3lNi8w+0Pg== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0X3v5ZzhWc; Fri, 27 Jan 2023 08:58:04 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 16/34] selftests: move_mount_set_group: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:37 -0500 Message-Id: <20230127135755.79929-17-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184524922866947?= X-GMAIL-MSGID: =?utf-8?q?1756184524922866947?= 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/move_mount_set_group/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/move_mount_set_group/Makefile b/tools/testing/selftests/move_mount_set_group/Makefile index 80c2d86812b0..94235846b6f9 100644 --- a/tools/testing/selftests/move_mount_set_group/Makefile +++ b/tools/testing/selftests/move_mount_set_group/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # Makefile for mount selftests. -CFLAGS = -g -I../../../../usr/include/ -Wall -O2 +CFLAGS = -g $(KHDR_INCLUDES) -Wall -O2 TEST_GEN_FILES += move_mount_set_group_test From patchwork Fri Jan 27 13:57:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49434 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848911wrn; Fri, 27 Jan 2023 06:03:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXv/ljVNmi8yWBbe+38AGGhkavx08rGXGDrbWQ2f56m7QzmdbXzy3rHK9dekjZmVNfOLqADi X-Received: by 2002:a17:902:8498:b0:194:4724:806d with SMTP id c24-20020a170902849800b001944724806dmr36740142plo.33.1674828206324; Fri, 27 Jan 2023 06:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828206; cv=none; d=google.com; s=arc-20160816; b=r/Oe+X2KRVHWq2MqsCSYj48jftfkeb3p5rQCc1NKE1JoaeeonUogzBGit1tnwz3YEg E7LQ4QqngldRqu1Fa07HJZCHorb93LU3AriYQ0sVOI9VudTch9mftn3Y/y6xsJBHaZni BwEVdh6KykuCWvOUg/ycVAWquBiHqkIfD5WPwLHnG66Yps/vPE24DU05Sk4ZXKb3UMnV dizyqSCY0WV7C1c/qAX0VSTmjNsHhI9yEMPt3+zx1Z5UzPwqXPGRZjyIwforC0vCnfYY 1eNkdJI1jAlOo3K6caCKyfb1KGxbFOicLXPN4MUeT3NENvUfNwwiMPhKso0BV49b7WoU TtJg== 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=6CleP35fxoEiU0ajTeGKWafhIRZKf9qtqIf1q/vai4o=; b=rPs4TwlvTTmnI38dbjYOjsvTPvTU5q5fF8QDtB+2KNHhMSmaPZ80nV+HgxLmqUDHYU xnkvHX3DR3kQRK70zQNz9NXbDZY0zko3HCZkx7kl5YbG0UoTyPVBn5iWUhw6awSaYy1O Hd+G00vt33Fi5AFp0rJewKaUqlvCZJ2DslzkPiEPB98suVDzFOwFegqfrdMigf52FcwR qckLe7uzKC9dzBSxaOdqwgVNukMQ8ZgmncB4ENXfyTYazIHHtw9oGd0uYTM4NSwX+WjH I+Dl8au2zr/5EN4i0uaeXhXYz+qkWuyxL87KU3v5L7Hl4Yp17BUhsOEKTllm5AOE+2Fw NbLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=hZDmL7dy; 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 p5-20020a1709028a8500b00196390097d0si4315823plo.502.2023.01.27.06.03.03; Fri, 27 Jan 2023 06:03:26 -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=hZDmL7dy; 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 S234564AbjA0N7F (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233715AbjA0N6L (ORCPT ); Fri, 27 Jan 2023 08:58:11 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68A3622012; Fri, 27 Jan 2023 05:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827884; bh=cTnlMtt/TSsCRchCKp67NRzjFc2OauBkH++SjQF+yLg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hZDmL7dy7O2Ch69odJb+uxDN1ztpocAPZgbInxLegCpGkBT2uIve++5ALcSwFTrt6 H6VC1ypiyuQcIoiJCMtTBjzjLDU3MkYjKtmE44KbilAT2V0+KGaeGfVJ5h2XWAj0SO VNAxmOekgJ6exPS50DZMkInYwLF9ueZg4n4klwuHOEJI/5zu8trLaLIbYpkSmho7ll fOAK4W8jDIyBdrBZcSzVc/yGGZjvQx+l03PY3IAtWd6kOVeSvxxDAMOf/WMGBjIlua rO/atyofT5xpL0b02JWBfoeAMhhoJmo4f7tI9eedYMbz7ORHsfTRDxUG5gUyq60+dk fkoavG7xVcpig== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0X5QMGzhxV; Fri, 27 Jan 2023 08:58:04 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 17/34] selftests: net: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:38 -0500 Message-Id: <20230127135755.79929-18-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184661549613324?= X-GMAIL-MSGID: =?utf-8?q?1756184661549613324?= 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+] Acked-by: Shuah Khan --- tools/testing/selftests/net/Makefile | 2 +- tools/testing/selftests/net/bpf/Makefile | 2 +- tools/testing/selftests/net/mptcp/Makefile | 2 +- tools/testing/selftests/net/openvswitch/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile index 3007e98a6d64..bab1222c7d50 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -2,7 +2,7 @@ # Makefile for net selftests CFLAGS = -Wall -Wl,--no-as-needed -O2 -g -CFLAGS += -I../../../../usr/include/ $(KHDR_INCLUDES) +CFLAGS += $(KHDR_INCLUDES) TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh \ rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh diff --git a/tools/testing/selftests/net/bpf/Makefile b/tools/testing/selftests/net/bpf/Makefile index 4abaf16d2077..207b6b958f66 100644 --- a/tools/testing/selftests/net/bpf/Makefile +++ b/tools/testing/selftests/net/bpf/Makefile @@ -7,7 +7,7 @@ BPFDIR := $(abspath ../../../lib/bpf) APIDIR := $(abspath ../../../include/uapi) CCINCLUDE += -I../../bpf -CCINCLUDE += -I../../../../../usr/include/ +CCINCLUDE += $(KHDR_INCLUDES) CCINCLUDE += -I$(SCRATCH_DIR)/include BPFOBJ := $(BUILD_DIR)/libbpf/libbpf.a diff --git a/tools/testing/selftests/net/mptcp/Makefile b/tools/testing/selftests/net/mptcp/Makefile index 43a723626126..06bba013bcef 100644 --- a/tools/testing/selftests/net/mptcp/Makefile +++ b/tools/testing/selftests/net/mptcp/Makefile @@ -2,7 +2,7 @@ top_srcdir = ../../../../.. -CFLAGS = -Wall -Wl,--no-as-needed -O2 -g -I$(top_srcdir)/usr/include $(KHDR_INCLUDES) +CFLAGS = -Wall -Wl,--no-as-needed -O2 -g $(KHDR_INCLUDES) TEST_PROGS := mptcp_connect.sh pm_netlink.sh mptcp_join.sh diag.sh \ simult_flows.sh mptcp_sockopt.sh userspace_pm.sh diff --git a/tools/testing/selftests/net/openvswitch/Makefile b/tools/testing/selftests/net/openvswitch/Makefile index 2f1508abc826..41ddfa9fdd1d 100644 --- a/tools/testing/selftests/net/openvswitch/Makefile +++ b/tools/testing/selftests/net/openvswitch/Makefile @@ -2,7 +2,7 @@ top_srcdir = ../../../../.. -CFLAGS = -Wall -Wl,--no-as-needed -O2 -g -I$(top_srcdir)/usr/include $(KHDR_INCLUDES) +CFLAGS = -Wall -Wl,--no-as-needed -O2 -g $(KHDR_INCLUDES) TEST_PROGS := openvswitch.sh From patchwork Fri Jan 27 13:57:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49429 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848712wrn; Fri, 27 Jan 2023 06:03:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/Yt10UUn5dKQo7fYmRMy6JNVkUOhRRMkBp0ZQlSR/7X66uziD5ry8pWL7yzhouIhL+Sh4 X-Received: by 2002:a17:906:e212:b0:872:3dbf:ce66 with SMTP id gf18-20020a170906e21200b008723dbfce66mr40868442ejb.39.1674828191982; Fri, 27 Jan 2023 06:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828191; cv=none; d=google.com; s=arc-20160816; b=K58ECJzaDVN2X62K4Z80v6fPWraKmqsf5EZH0dM9gS7G9NooWShYpDHXxxtaqpLMcm NVNvmQHJ/eUfwBnqNsWhGTJBDTVFsWmUwkl5zlxbbgUCVZNv+4Zk7V+B6eS29dxYsMxL PdoZd69d2zR6zsZRPJPa/6eFpYXTkD+Dto37azO52UUl2wGjjYwn+U4vcXqjJ+PadMNc iMBl//k4He8EFpe1C2BECbmYGZpUEDIMgASJznjbAa9h3QxHmZod90RY/EMJuur8ioCS e5OaALLZZuypvKbruJ5DgPRKmnWCjqDyWEYvIBnhuMdAqTgkiUihhuRAQGPWFor5pHWl 9Rmw== 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=aEs4AGJ2z0ZbWZDr8glAKBdJwJcrgDgQwJY72xgrwR8=; b=VG6I6dj3UE5RR29KmtWAECEsma1lsbfHX0ds+zWJOQD20h358rTjtku6/TfJQUDXXI 1gwhwEQRtRIEOpT8WCXBzbbN53d+HtMdQvwz8kN3BBzq28oWv4JWFeT6W+R5+tf02qcw oPvv6NjVmlY9QMqSSBPWrqlUeBTXJIg+DkhM6Jt1bZiEPJ0/IOPl2J5+KhngnYiHdjo6 FktdKo8D7VpwQzXfEjdBopX/D3qcgCxNWbBjKJu/V/wod0ZhDcMaszsvPfeocmf8cCVA WcP3PuyJB2BB3/qp1tjFJ1DjEADlH0S8aoc6CdqaQnCXUQ/k40MNWKb7OY11sLnfxEFG 1A1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=Du2tcx85; 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 v9-20020a17090610c900b0084cc41e20e2si4923732ejv.624.2023.01.27.06.02.34; Fri, 27 Jan 2023 06:03:11 -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=Du2tcx85; 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 S232209AbjA0N7B (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233526AbjA0N6L (ORCPT ); Fri, 27 Jan 2023 08:58:11 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688FE21A32; Fri, 27 Jan 2023 05:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827885; bh=3GbxuVCI7xPWc+Ss2FtvtmM+sZMkYwBabD+f5z9dPoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Du2tcx85qTfnDknrb3uuH4hb7lRKYNkHwhdZvSM/4vtUT9PoFp6+Mg5Ts+Q82vB9h yKJhOtrmSLnUDcSK7kAXkScMeRAiFDU9krBHsq0861F50gFFvUa9+Y098x4JCbsgq/ sdccnFfg+SOWVq0LLFQFXIcS6Pr+7YNrtFAACmpRiePzTslLuTRPfrMxjmJLoLREoA t+Jq3cpT8H7KFvDKd1TAM/MpDACGwc6WmFn7ZKvNTMeu8vsbDIhDj2gfhZORRUKvI6 28LYLE/BM98Z8d3OIpL9DqWYFNTcQsYldyA7MP3hN1+m9mCewlF26hv6QDK6BTwJSW AY5SmuFByTeow== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0X6zrgzhrh; Fri, 27 Jan 2023 08:58:04 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 18/34] selftests: perf_events: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:39 -0500 Message-Id: <20230127135755.79929-19-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184646040062625?= X-GMAIL-MSGID: =?utf-8?q?1756184646040062625?= 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/perf_events/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/perf_events/Makefile b/tools/testing/selftests/perf_events/Makefile index fcafa5f0d34c..db93c4ff081a 100644 --- a/tools/testing/selftests/perf_events/Makefile +++ b/tools/testing/selftests/perf_events/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wl,-no-as-needed -Wall -I../../../../usr/include +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) LDFLAGS += -lpthread TEST_GEN_PROGS := sigtrap_threads remove_on_exec From patchwork Fri Jan 27 13:57:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49438 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp849498wrn; Fri, 27 Jan 2023 06:04:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXuGVA7TG3rYBpznytgNYo5/sE5zO3gLLJooCY6GkPZMaDzHZuuz5FO6UdxMQKlDZbCcHopn X-Received: by 2002:a17:902:d2cd:b0:195:e457:341a with SMTP id n13-20020a170902d2cd00b00195e457341amr36140348plc.4.1674828256901; Fri, 27 Jan 2023 06:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828256; cv=none; d=google.com; s=arc-20160816; b=aEXyqXM7bQa7/OMnCLURmirSu/uyAAuQB+Jigf3Cv/7npqb6sCTt/oVZFOglE/R5lG OrU38jH5ArUhw863wd+Oyq0NtpuoXepOJXDgwyot5Pf79IPJR/T1w0Mq9oJnNBZZmlhH L8w/wgYkl9ArGHyxTizo/8W1iUbRDUPcJ8EeJ5jv0cBebKqacf7vp3HzQwuZnG0hd7n/ MdSWrsltCMUKZRm2zQchuCKlM/4IQfUd6EmE1xSV7ub06Eh7d/TiRQl4nCPUVsDNcYdE 1K8eHvX4JXDshVCD2opBxqiNj3dbwNcO30fMvZi2g3RKNZVDo3s+M2Uf36ydwbIVg4ji gkPg== 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=ZfVNyBH390ViQs/7UYKzoa1hIWc2c3sALrqigCHYNVY=; b=KlSLisGAYgG4IIRlkuuZ3MMXOTb8blJ7v/VJNRl+nQULF8uDKPUb8BfTJgupGdVPJg 3KXGTSSB3NsjoubUX6kYyOpV9LbQC8eB6arcCiFqgMxbkNwKNQSYyBS4eLQwKKYPZ31v Ha2gz9uahQWbrdN5PoSZOL2CUkQa2cbU0Y9GTU48Eu0M1PGrz6TTvSYgwxpYbvT21BGQ BpUXBcAvkekUkjYK1fZXZsbRntbMtURBRJiJbNE2GTqAGaLoulnVEej3kGmDhtxD3K45 ReRnKaDY8zfs8tXH3bjTBPN3/zy3mR3VVfsIPYA0YoshUl8MyA4mCMGh4vGJZrk0e8pb Eb5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=oVHmXurz; 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 o21-20020a170903211500b00189b36a5427si4431298ple.16.2023.01.27.06.03.39; Fri, 27 Jan 2023 06:04:16 -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=oVHmXurz; 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 S234672AbjA0N7W (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233744AbjA0N6M (ORCPT ); Fri, 27 Jan 2023 08:58:12 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5204222D6; Fri, 27 Jan 2023 05:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827885; bh=Xbp5KzcrorO+aTVy5ft5VjJu1byFBs5Sa3jbbZp1vXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oVHmXurzNmglu93HtwBBBAsCOSaianGAd+AzEWyrbKeRnf6jH0Kt3vFsk6Y9Zg5Bv cw81yKik2bvZHb3qBwcTtv/s0nZPmn1GUJIWynbu86vmNxq54pJV4ECjVEGo1AomAG bMZExrBryqrRRk96dF7VpC3Xvo8ctbak8bVDpqZeEDhbUQ6ovNuQTzoiBZJJJpoGYa kF7AB7PzQB7AShOQpOqVm6EoAUjyQeDdwzxxeqBXLPLCJMq3xLIImb8tTi2vU7OktB PHGrZQH/BMWKbDYhsksIIkkTV5PyzpzCCs+IGk2Gr6wBTcB+LZjBlmF1j2szkVTSoX vCbZI+fIJj//g== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Y1McdzhWd; Fri, 27 Jan 2023 08:58:05 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 19/34] selftests: pid_namespace: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:40 -0500 Message-Id: <20230127135755.79929-20-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184714316853518?= X-GMAIL-MSGID: =?utf-8?q?1756184714316853518?= 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/pid_namespace/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/pid_namespace/Makefile b/tools/testing/selftests/pid_namespace/Makefile index edafaca1aeb3..9286a1d22cd3 100644 --- a/tools/testing/selftests/pid_namespace/Makefile +++ b/tools/testing/selftests/pid_namespace/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -g -I../../../../usr/include/ +CFLAGS += -g $(KHDR_INCLUDES) TEST_GEN_PROGS = regression_enomem From patchwork Fri Jan 27 13:57:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49433 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848914wrn; Fri, 27 Jan 2023 06:03:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/tGKi+8vGvQju7LjHKY+5oxFk1jBwV2YZU4YHNl+hbTKGmDdTMqAxcLRziUqTXGbeGZU3 X-Received: by 2002:a05:6a20:7f8f:b0:b9:5fc6:9e4b with SMTP id d15-20020a056a207f8f00b000b95fc69e4bmr41749968pzj.62.1674828206590; Fri, 27 Jan 2023 06:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828206; cv=none; d=google.com; s=arc-20160816; b=RifkjNqk7sqv8BL4QdB+aqFK0xxw1nO2sYQPotSKHDsQkyyrbRRhIBOf9QpcesO7Gj SdgQ0C5ykTOy2GVsvrWOMVAWUF6SszlVi2mD/Dv5gGXfjcPIufUL+B9jeTHLSG1yEQ8/ cftW0FoJlskXGFhN57UuuXsnMauagKMS1lJDHyrofuZOl5dxQc8v/VlaAadljSNqH5CQ sIg+N+KZglAhY6IfGyCCbkxR64WbF4XcmW9MlAfMMoekPPU6ZZ8doukLiReQX/bBZuRk jP4NORoi6sgp4LdIRVHM1Iv7/mQZZvoxG1VPXm9pYKHUgpeTQGAnTmT2RIwh3HUATh5/ qS5g== 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=+hDrRkfueF/boyIFIwtY58osrvN4CbCtlDKoK2940CM=; b=XrUg1Oc7+X6qLsNtTsip4SI+FREjKbyU7LNptgoWyKjwJK3nNzeWVKhhGUKrMK6yjG AQvmTH1X/CZnbB3H+JnFEJTB4iPY1wISAfqSCx0e9at2+d5yj2hlmYzSX2KCd4LB4Akp bntnCK0rXR4Lc/bLfjc8OwDHKIY2HC95sbJZzex+c9gXzXK3biXkIm9Wcuuu0baTGanC +TNFCSoQH0R5KzPu3x0JAnR48ERq/pO0mCPaYhyelzwxqVAc+eVK+Ie4fwJncQSK8SXg HCCbSs1gKKA2QgHkEqj+UDkSfJHUpLzcaMduUE0ovqUexzIakGoU3lWTkJ6KzlpRgogR R7yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=sZLtmVJg; 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 j184-20020a638bc1000000b004de069353f3si4465270pge.108.2023.01.27.06.03.03; Fri, 27 Jan 2023 06:03:26 -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=sZLtmVJg; 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 S234312AbjA0N7J (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjA0N6M (ORCPT ); Fri, 27 Jan 2023 08:58:12 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B4D222CE; Fri, 27 Jan 2023 05:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827885; bh=37ZWsmROVaxpktT5dGfnB6ZjxRF1K5A4VH/tq4Quz1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sZLtmVJgOe7J/m5Vr7iZgv6UA1b0if24ikXZVlpvj/BcZPlzGB/wRwI9GquHaoExU k62G10tkqSk5LgCHzCaYw3xbUfxfdsn0yRSzuUgtSUQ9Snanw5F2kHnQxp3trq/5tI 08nDEdixoXNqKXEP0pdT2aYfUKRtwMNIkzLpHvSqnmYxCzEXWvUQXEGpaUYOHGnbW7 e3Zj0ja6quxZvhJhJGVUIpbaJc7u3AJh+bTIZZ+OeOoMebx3Z9QHcw8v6oR2Qb5SiD 16pyvS17gpQ/6H2RRCPa9NbLZmEX55bnvWwtHkvCxMfV78UBD0UdnoXndzIDfaWusA 9Eelq7WycBTWQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Y2tsXzhrj; Fri, 27 Jan 2023 08:58:05 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 20/34] selftests: pidfd: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:41 -0500 Message-Id: <20230127135755.79929-21-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184661524751599?= X-GMAIL-MSGID: =?utf-8?q?1756184661524751599?= 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/pidfd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile index 778b6cdc8aed..d731e3e76d5b 100644 --- a/tools/testing/selftests/pidfd/Makefile +++ b/tools/testing/selftests/pidfd/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -g -I../../../../usr/include/ -pthread -Wall +CFLAGS += -g $(KHDR_INCLUDES) -pthread -Wall TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test \ pidfd_poll_test pidfd_wait pidfd_getfd_test pidfd_setns_test From patchwork Fri Jan 27 13:57:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49435 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848902wrn; Fri, 27 Jan 2023 06:03:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXujBnyuqQZIdLLjxr8VatZ/5EGsPxhxnnECwoRtgYK4PrKzzTPG3KjmiqV7kJiq4XtjPwk8 X-Received: by 2002:a05:6402:4486:b0:48f:a9a2:29f4 with SMTP id er6-20020a056402448600b0048fa9a229f4mr44092424edb.1.1674828205672; Fri, 27 Jan 2023 06:03:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828205; cv=none; d=google.com; s=arc-20160816; b=bwdblktMvtvveGcvm8m9ffFwm9H8XMk7vEOVrnl4qXR2DpvvGn5ZwAGozK+LRy84+f 4CCcpLdQXi9Ddm5Jr9Ip1s1/uNfRszynrHoHCbXcKK0jxh5mjBxlZUNaX1bW4xVvTx1e MyLeTxVyKT9L9jt1Xg+eNkP30ZTWKlFNNlctMdGXsov4gULW8qGaGEAEiWGe5gqye4rd oCnopHNtUkwOjyG7aKehdMPx8KC7yV6q7IOiCY2RiVC5YxIkE1EzwmiXBqtUpoIcrEw3 aOqVkej6/AlUjfJxwddT+f1DAGBDU7VKTDmJTt/lMR28SwOB1GJg8ce4IVt3d+zgW1aM Xg5A== 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=pjzis+pVGfgRsP7w+uR+vdTAH2pPpRA0KELTr7rPYKA=; b=YvqPE4ZV2nQIyYtYnliADh6PHn0jgiQDyHGxynQRpbEA1dZjwlN47g8r2vEvr3/Ocn YKd2kX5JAllO4iNfwEWHiJLTAUxytw18Se/cSO4v/KdNR6nbQh/VRJc9iGrFDWRHn652 FSMZmGL6WnM0wavANoGqgLUDb911CctP/AVyajxFiOvPzgf0GlpXfPMn0TGegtqR84mW ghV2Y5zo3HGmNYbObZjlhdiFmGA9kcjfBTtMpiTu51hX5Cdvkb8NGesjFu+/fCLIwxYi ug/+BVbcerHPME0XBg2mzFqHPUu9q9/kpGea/4ufoTb0tDNLyXU9LsraMFo5HsY4b8un u+PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=IkB8kiVC; 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 dz16-20020a0564021d5000b00461acb2deebsi6760676edb.198.2023.01.27.06.02.47; Fri, 27 Jan 2023 06:03:25 -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=IkB8kiVC; 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 S234759AbjA0N71 (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233858AbjA0N61 (ORCPT ); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A5F1BE; 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=1674827885; bh=W1SNh9l0TTB1KBtqwgm3YAfF4yBh2kKc5Jd9s6u7Pq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IkB8kiVCqVI+YwWj5pZqoy1+Z4gzF1KJ2e2rHjwkerBQWcq5fEosi742/rGPUImHX 1dAuTpad1nej1fnX5w5HCinO3PO4hAYR0VGbUBwKHDEK6fIc/UBUvhk8VsV6qRsebi bHETpeJcM5kAYj7vSimd75R7p/b1cG2FHPwBfIaRFkmrzStZ05cUHhGSBvE1ygDCvX DQlDt4T/NrVIvupKeDHIzXH+jZ5vrflGHxJMXC6a8qCQ9adK9fj4wlJGprJKD+Plop /TRahV4z8roHAZZD1n4pzREhg3mnU5l82sfh9/4jf8Xok6hSaMWGI2I/7TC8BIsz7r RwU8Q+y2puuNQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Y4Jt3zhWf; Fri, 27 Jan 2023 08:58:05 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 21/34] selftests: powerpc: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:42 -0500 Message-Id: <20230127135755.79929-22-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184660886853665?= X-GMAIL-MSGID: =?utf-8?q?1756184660886853665?= 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+] Acked-by: Shuah Khan --- tools/testing/selftests/powerpc/ptrace/Makefile | 2 +- tools/testing/selftests/powerpc/security/Makefile | 2 +- tools/testing/selftests/powerpc/syscalls/Makefile | 2 +- tools/testing/selftests/powerpc/tm/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile index 2f02cb54224d..cbeeaeae8837 100644 --- a/tools/testing/selftests/powerpc/ptrace/Makefile +++ b/tools/testing/selftests/powerpc/ptrace/Makefile @@ -33,7 +33,7 @@ TESTS_64 := $(patsubst %,$(OUTPUT)/%,$(TESTS_64)) $(TESTS_64): CFLAGS += -m64 $(TM_TESTS): CFLAGS += -I../tm -mhtm -CFLAGS += -I../../../../../usr/include -fno-pie +CFLAGS += $(KHDR_INCLUDES) -fno-pie $(OUTPUT)/ptrace-gpr: ptrace-gpr.S $(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread diff --git a/tools/testing/selftests/powerpc/security/Makefile b/tools/testing/selftests/powerpc/security/Makefile index 7488315fd847..e0d979ab0204 100644 --- a/tools/testing/selftests/powerpc/security/Makefile +++ b/tools/testing/selftests/powerpc/security/Makefile @@ -5,7 +5,7 @@ TEST_PROGS := mitigation-patching.sh top_srcdir = ../../../../.. -CFLAGS += -I../../../../../usr/include +CFLAGS += $(KHDR_INCLUDES) include ../../lib.mk diff --git a/tools/testing/selftests/powerpc/syscalls/Makefile b/tools/testing/selftests/powerpc/syscalls/Makefile index b63f8459c704..d1f2648b112b 100644 --- a/tools/testing/selftests/powerpc/syscalls/Makefile +++ b/tools/testing/selftests/powerpc/syscalls/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only TEST_GEN_PROGS := ipc_unmuxed rtas_filter -CFLAGS += -I../../../../../usr/include +CFLAGS += $(KHDR_INCLUDES) top_srcdir = ../../../../.. include ../../lib.mk diff --git a/tools/testing/selftests/powerpc/tm/Makefile b/tools/testing/selftests/powerpc/tm/Makefile index 5881e97c73c1..3876805c2f31 100644 --- a/tools/testing/selftests/powerpc/tm/Makefile +++ b/tools/testing/selftests/powerpc/tm/Makefile @@ -17,7 +17,7 @@ $(TEST_GEN_PROGS): ../harness.c ../utils.c CFLAGS += -mhtm $(OUTPUT)/tm-syscall: tm-syscall-asm.S -$(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include +$(OUTPUT)/tm-syscall: CFLAGS += $(KHDR_INCLUDES) $(OUTPUT)/tm-tmspr: CFLAGS += -pthread $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64 $(OUTPUT)/tm-resched-dscr: ../pmu/lib.c From patchwork Fri Jan 27 13:57:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49423 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848102wrn; Fri, 27 Jan 2023 06:02:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXvp0drtUP/VkdE3x8LKIhZ/pswuFbFkb0TCpwYyABlNkQHpPLnSm1C6ZsatZTJzVgSeJY6E X-Received: by 2002:a17:907:d684:b0:870:4986:2ce with SMTP id wf4-20020a170907d68400b00870498602cemr48868490ejc.58.1674828143129; Fri, 27 Jan 2023 06:02:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828143; cv=none; d=google.com; s=arc-20160816; b=PK1fhDZIKVbNTHCXzABx5RqXCE87u8XknTivMnHqAyiH2W8de8bZxWIDF0mnT6kotL iKwo4OapkS49ZvxT1eIdUYq8n02G3ua0ieeenYriIMfzozR+n95E70zojV9trugvKK4q zauCp4xwioxks/KUTx85SJgNc+rNvGYN7gsQfIgFn9BnUuKjXzZnOHXfWgFntyAlWZZk tMbF6ZYIguFwWZBL7+mIDgxL+MRsekSeEWRqxa3g9ZapTDpJMDVWUkR2gMR6c0hoadsN ECITao2pXEgCa8t5boGIxmpwWynatOXeUl+w+mafOhvDHJSCFpdQc8W0G0zQQiGzRwTT jHAg== 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=+jT8+nH2cFvKrSN7h2jmbbV+Nueta+lPLyDJoJxjNBM=; b=Dzp0qncsgwuXXmgJ/xiYC8rMXDMP7c6Zog4TwIC+EDVvyGYPgVOw4m3ADhUHzSTxI8 DZzExM4bG2ydzjMampyzsSCVRBwDGa/BEucwvsD9Sb5AH8bL7ILXrb9J1bwvd7BQAG5r T3Yr8BAQ9cJCZE98H0UEn+iS4b0bApLDGs7Coz1XtLGthZcCNUmy9iXaeTvKyJ/sS8KQ NMBYpCIYV0wqStKjWVcWspvFHzq9cPSHiglY5V2RNx+FXygADE5HYVAWtn+J/ptUweON ByhMmZ31spl5LlTBK8k97oXx+asCGTLdYgOypVpsDMVAmBBV2D0NtZQ1EKFfQ0tpirlX yHHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=o1rycBY7; 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 ui42-20020a170907c92a00b008775fc7097csi4988449ejc.774.2023.01.27.06.01.50; Fri, 27 Jan 2023 06:02:23 -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=o1rycBY7; 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 S234305AbjA0N7O (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233747AbjA0N6M (ORCPT ); Fri, 27 Jan 2023 08:58:12 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 484E940F8; 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=1674827885; bh=3jJ2ZRw1vIzdDe/j4jE5CyhrGQNLfgTMGygamyBGoBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o1rycBY7wPyLKfoO4vNKOmorLZwiObst/fF6T0cysqHXmGF+A19CR+s8FZHNuxYFd 2ywsBpCbI4dCzNtQ/f4Cbz8HMQkdf0fInM2oQjoyVI4nElKdbMuoUI5goJsF51rlrd clAnCqSN0OfXPjIHIfY/48Fr4o0z5icDGWTWwl+8xePOBPbkhjPwFGYKpH4TwRrjBF 7xDneVhU350VL2KMGBuZt0qducEE6LvfvWh6V8HPVAdocHAJeF/5fdSc/0pf24/D3H ak/NJYSM9znlibHry6NoEfM7uCXXGi3jRSORVWQ4+IuJRPA/fyf5tONVrv3ioV7Ncj 9l/Qc9cVs0CQg== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Y5nlSzhWg; Fri, 27 Jan 2023 08:58:05 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 22/34] selftests: ptp: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:43 -0500 Message-Id: <20230127135755.79929-23-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184595046405237?= X-GMAIL-MSGID: =?utf-8?q?1756184595046405237?= 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/ptp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ptp/Makefile b/tools/testing/selftests/ptp/Makefile index ef06de0898b7..eeab44cc6863 100644 --- a/tools/testing/selftests/ptp/Makefile +++ b/tools/testing/selftests/ptp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_PROGS := testptp LDLIBS += -lrt all: $(TEST_PROGS) From patchwork Fri Jan 27 13:57:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49439 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp849605wrn; Fri, 27 Jan 2023 06:04:26 -0800 (PST) X-Google-Smtp-Source: AK7set/QgSOqtINpnSSg4z3r2HvcpBzJ0LZ8btdLDuukXTVmFyA7MJamZUfGrVpQIpRHtuq95cks X-Received: by 2002:a17:90b:3ece:b0:22c:4455:a84e with SMTP id rm14-20020a17090b3ece00b0022c4455a84emr3842870pjb.49.1674828266230; Fri, 27 Jan 2023 06:04:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828266; cv=none; d=google.com; s=arc-20160816; b=E3HStNZbiz7y4EpZeb3WObC4hNvOdl/CYBHpVdhhlPj/RDPXq3LGzPEv5Tp7EYbdjR w3QqxDaKcW4sCqEqfybfuzpD3fNDFnfXj9F38QnPfzFBHpuwuV3D+N1MrdyZbvNvHhKD m6BUYP3etFPdoWYBvUi8d8vvKRtSZsuoSrL1bjaxKOTB8oqdw8j2fYm0qc8VvaQ+NR3w A5q+9C2+DZcnt8hvQrp+skHkU2ws/WDtQzAXM56qhxbepMTnzNM0T4hWs2xQ8FOD7QcZ uVtqP/eVDOUfzcjdb95j1bGxOm7uLfsK4rBRMwwDCqlXIqiqNsFq/zqzh/eJvT5men0k nr1A== 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=RoZTK9owN9c+jidKO/R9iEu7oR+ZQrL+oLL2kDbglWA=; b=e78vJvqr4wDNpJJDfQz48cjBQvEDyhqfCSCbm97uoLby9mECRjSGoaLljgcYOXiG+H 50BaXZujaBFwlQUTYdWiTRzfqm7NtCQxRGQ38KjO80ZAnHNLYywglP64LK1JTX1C8vBB llT+D0m4xRCyJFiVuRoV/Dc+6DRMKVSP+LQstBxkF8LOpIVZJQ8nucj7iMrKFkK5xtDd N1fsaDWDFHayPBUqjdzkBr9OKxLud3Uyc0nSgMsmYrYlKXwNczZhkXt9lLa3gfVoaRkA 8pJMcmfmlEZa51n7IDfE4qY2LGKV8IWnw5wE6+jUEmgAWJh0R2nPDehg9g71+krjtBg3 /oJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b="oEYBzX/S"; 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 d10-20020a63990a000000b004de85016dfasi4558010pge.15.2023.01.27.06.04.06; Fri, 27 Jan 2023 06:04:26 -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="oEYBzX/S"; 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 S234771AbjA0N73 (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233864AbjA0N61 (ORCPT ); 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 A695D3C2B; 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=PG/Ee5DQDuFzfrqjFpBbIaCu85R7Ezz7gm4/41lk96I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oEYBzX/StuCVTHU0iCdXz7e1iYqgt3TWZ5crSpWT/6F2Yc8anQeVMykmy2L1W57Ak 0cB4dEH5/H7W+EjZrej4ygCXRymK1pRN3A9vryGaaI/GesCg9VIE+kEOCbKsxaO98H UZBJqLq3jr1r1uz9s+ia/u0Np2pmMDNY9RoWLB2TmHg0+H0oCDpmE7nGq2WV/LRxQ9 e+uX3RL4HREimLcuYaNbJIdMgM4O5Wcw3rdK38jAzBft7fD5XMC4QMB1TlOdWAtcQN 9CggsMZEaKg9M4KyiOLZLiSnBabXem/AD8DdgP5MC3hKChKzyxpGGjFWVATfVTj4wl PFmlBf/jxhmjA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z08sfzhWh; Fri, 27 Jan 2023 08:58:06 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 23/34] selftests: rseq: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:44 -0500 Message-Id: <20230127135755.79929-24-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184724033301254?= X-GMAIL-MSGID: =?utf-8?q?1756184724033301254?= 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/rseq/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rseq/Makefile b/tools/testing/selftests/rseq/Makefile index 215e1067f037..3a173e184566 100644 --- a/tools/testing/selftests/rseq/Makefile +++ b/tools/testing/selftests/rseq/Makefile @@ -4,7 +4,7 @@ ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) CLANG_FLAGS += -no-integrated-as endif -CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L$(OUTPUT) -Wl,-rpath=./ \ +CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -L$(OUTPUT) -Wl,-rpath=./ \ $(CLANG_FLAGS) LDLIBS += -lpthread -ldl From patchwork Fri Jan 27 13:57:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49422 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847801wrn; Fri, 27 Jan 2023 06:01:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXslprDZT7o1EgJ5w1kVBAkoZnc5OfTJUL5B12VKG2NnpMNRCRdZU7efR+mokvWSVcLG3GDJ X-Received: by 2002:a17:906:368f:b0:877:593a:58d0 with SMTP id a15-20020a170906368f00b00877593a58d0mr36026989ejc.29.1674828117740; Fri, 27 Jan 2023 06:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828117; cv=none; d=google.com; s=arc-20160816; b=kGFDhl9s1ODoaTB/6MQdtJwMXSzTFQ0DIFHPXJQ9L8Ots8J0ZiFQ/lPcLd1Rm3iGbU cfuaDFilRq7/FCzCpRtt0Pp2tSNP6LsASNrYgkjrAc5nR7XCHD+qkGrjjisxkzn4hdSX Yldmot0vO9/2+Cv4Km90lWbuzyQdZ6YhvrQyQy6pds9X1r6c3hn4/wd5o6hOU9oqdUDz FbSwLtYiI8STc24fkaSAfMHwSZCXUzNUCFl3U5cqCqeADbmzFhByStSVL125/FFUKipk fIUNsKv5KFV0NZtGud74YNJrqeCB0bwMhgsZLpq1kXnOBZgfkRG/agJ4S5cme2/hu4YK JPqg== 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=aEnyfBIlH6VmSKlO81EwbDvNkXl/MYZJYkQTh142uBo=; b=KxdXoGcKoJ16IP5cDYnU1/CKC60rdeVsUXs2mUCY9zbPHeq6GeohIJ7MtuOMP6eGlN OAPbdFmc1DnFCYRvG1BW989JYrILUqBKkCNCDVZD1lY/eDsFYwMVwxrFzVakF7LyTnMr nCzsl/fz/1xrXfOmoXQ+FXb/1fM77xivRdLFYEiUAF6ra0y8t8Rnn+KJLryTneQg3VZt ULcqQ/1ypQ3/ANjP0lPj0k9IAKGjOULM1BQ7tW3rlAZhZRhV6j/QWMpJ5GhMDG7JRh2E ESMqevsCUdLla2gpcyz5XH1NX6P1usx3jAG8sBNu4/+lluRFFkJIZsAFun709b11uKZe oGZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=r3iPnQ1n; 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 fh23-20020a1709073a9700b00871fccac238si3881272ejc.785.2023.01.27.06.01.27; Fri, 27 Jan 2023 06:01:57 -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=r3iPnQ1n; 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 S234820AbjA0N7k (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233869AbjA0N61 (ORCPT ); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6571F744; 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=uDI5yZ5AUjaWUAD8uVr62Zzy8zYKq8tYLohNK4Kd8Ig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r3iPnQ1ntG+vL8a5vpeFz28Y90DHd+LuJppJEtd3xrerEso1/RWOm6X2ChuZi1tDe oZ2QTVHk5sbjG8bmhzSjko7Br71nWcF86Tox9Y4Vyw5tEoBa2/9pqrC1pqrG4sZ97r c8jox/iYvN5yIq5TPfAss+wrjx/i8XBSlqcFL3OsDRgNby4gyUeh0nxtpVeUTWu7ou hY6rl/tUuH9U2IQ7r53oUTEe0AKAoa7gW3lQKwB99bYgM5Ggt6eLfVHdMa67H5p8by +lWK5eS91J2GqTFUgJDkvispH88QTrlrBmmkmvl4o8mRbuWTC7pEKyo8GjRCMqpZXr dJhRR3+n4rdew== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z1g8BzhT8; Fri, 27 Jan 2023 08:58:06 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 24/34] selftests: sched: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:45 -0500 Message-Id: <20230127135755.79929-25-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184568451290927?= X-GMAIL-MSGID: =?utf-8?q?1756184568451290927?= 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/sched/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/sched/Makefile b/tools/testing/selftests/sched/Makefile index 10c72f14fea9..099ee9213557 100644 --- a/tools/testing/selftests/sched/Makefile +++ b/tools/testing/selftests/sched/Makefile @@ -4,7 +4,7 @@ ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) CLANG_FLAGS += -no-integrated-as endif -CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -Wl,-rpath=./ \ +CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -Wl,-rpath=./ \ $(CLANG_FLAGS) LDLIBS += -lpthread From patchwork Fri Jan 27 13:57:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49427 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848421wrn; Fri, 27 Jan 2023 06:02:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXuDCchLuj+06xwb9NXhttcuOCA1zUSCuOqmL4KHr33WH3AEij2U6/otJFJWBRMOtF6uNZfm X-Received: by 2002:a17:906:5d1:b0:861:7a02:1046 with SMTP id t17-20020a17090605d100b008617a021046mr38927150ejt.37.1674828170027; Fri, 27 Jan 2023 06:02:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828170; cv=none; d=google.com; s=arc-20160816; b=H5tJL09a4E/KPXOmDn39WcEU/lxtJaojg4XIHo/d1hF1mqpp9vkd42+cVOWb/Gbnz2 XCDHu6tJVjt6p3aPx4QLuhG68Wk8x4nD7GSZErE1sxxtgychthAC215U0Zug8fwo6l3K LscZGp3q2UIEzB2DLjS1vGWlBUkHnzdD5D4TC8IkkG1aV+QHxBsFIV2ghOaHq4ULpV2i 97ZW/zOlBisJvwCjTBN68etQnhWilVTbB2yS9E6IAYYcCyxS2R2fUpaMlHYMPUbjj0WU thgXnHpaM0uVZJfV5ZPWO3t36wkedSycze4Dm3/Ty3zY2YzaXnpf2yoZ1qjh0EfY9Jbx 3qmQ== 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=pqF86ssJCgEWFjirbgepgs66Y2pRV8azR+UH4AXMyxE=; b=o0NZzQh2NiQrZO9WwWBn0rMXdDyWkv1RkKJpkVk6kKrV6K18dAR2ukH001BbqVw8fO uFicWOR9VobU55RYu56I7K/mKG8tLt4cemihI5EQTLKTfJ1ugI6c+v1HXBTtuu1HV05u r1awUAiyAKt1k+Ib7s5/lJY+ZwoAYJGhOd/DuTdetATcj3iakubKWBl4JkDuTOUcdB/C 1Ky5Mz2BnkaHNseXrWrG+LO6OQzqPOod1v+sJ2eZaMiAK8ygRBuTIZ+t50zrWm/FeiPX YO87sn/N9kNPJohMNJDfivvHzbmYCQoZJ/TFiglMCLVHrKr4c/lDoHF9Im5x+PR6MtHJ T13g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=MyoTFkvb; 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 m7-20020a170906848700b0086fb8469f4csi5071377ejx.191.2023.01.27.06.02.16; Fri, 27 Jan 2023 06:02:50 -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=MyoTFkvb; 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 S234800AbjA0N7f (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233867AbjA0N61 (ORCPT ); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6011CDE7; 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=G+eF3FqXFX/xd2Tp8up6FJ8ZvO4HTETfOik4EAwTn4w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MyoTFkvbD5J97DBzlWDHV5OUvfm/2PieEl5l0yUvk2X3hYYbS6H06c2FPDvK58U9u L3mztiHjst/3fx1yJsY7cvvGIIrURB/ygxWC0kt5Spx4a08uQsGEj/ayMHSDTRC12c 8N6fbPSK/RAacHHz+CEcSjMmVGvLdtnmgMvZ7Gr4A+YMSd4kywfPVBytdwDLBexw7n jeOe6HS84KogvuZwE8e3P4Sdr3wRiepMvwwZQ524Dd9at02202n9aDSV4KkcrgRl/D +Ygj0D1OFyWUCahXWVhrvTjXgLbJKxkkT0Udk3SR4N3vRrXD6mXkbMysT0YyhfvvRK 6L8ms5SmbNA5w== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z363bzhT9; Fri, 27 Jan 2023 08:58:06 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 25/34] selftests: seccomp: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:46 -0500 Message-Id: <20230127135755.79929-26-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184623378662957?= X-GMAIL-MSGID: =?utf-8?q?1756184623378662957?= 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+] Acked-by: Shuah Khan --- 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 From patchwork Fri Jan 27 13:57:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49431 Return-Path: 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 + 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 ); 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 To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , 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 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: 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?= 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+] Acked-by: Shuah Khan --- 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 From patchwork Fri Jan 27 13:57:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49432 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848890wrn; Fri, 27 Jan 2023 06:03:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXtempikYk9mPatjE08Sv4sMueR59c7wI9hriVvxZfQ7L3rItWFQYigXs9tBeClB3V52EZZP X-Received: by 2002:a17:902:bc86:b0:194:9c6f:64a8 with SMTP id bb6-20020a170902bc8600b001949c6f64a8mr36795354plb.38.1674828203917; Fri, 27 Jan 2023 06:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828203; cv=none; d=google.com; s=arc-20160816; b=GH6VOxDoYuLh9H1YL4PPmUAEmMTJSR3cYRTeKFPibpHbMEPRgyyIf+BJW5qmkTAVXv h6DDv8Rw8EvebsPSp8wQqqwn2Lh63GSJqL+Iu9IprXqyTHrrLBWCrDxiTLwEiXs/S82N 0paeUOstaKgyKeF4IfpTzO2CrGTcFq8bf18Hfzbcx3qnXNy2ujy/H/q3RIuQ6QTaXWn+ Z+ma2BW+2qCEGOzw6WbaW2kJqZslBfuXTaUePFZti1vi9vsg825R8Vd5o8E5MlcmOwEk O+pdVNZdfxBX2rxHQoTUS1GWwUpDQaquY13U/Hukv9LYEOIG728Wn3JF0caCeUaxFgWL ibXg== 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=FScd8cA49qs6v4ytxNZlPteCRKas6qu0ATUq8suOqnU=; b=h/aei6nqKvuVK+aaeGIrKpduNavpFsZ0WL7/qKBR7nSjmyU7lYmN/jhG7w4ACp7UCY v/BHYLjMBVeI3iEzA2UjDuyIwqy626xxuPo8LQ0Yn/IBzjyPm49O0vPGkW0/qUmBWdvO sxqWQMNFqP5hNsU8SfokgIAJEnooDtsUCPU2WsQ5LzdABbxA1iJaiv/BK69BKU5c1Qhy VqagY/IqN+NRkPt9aXok6m7ixGc3wOfap8zAUJ6Pb1g+hs3FoJW6AA5Th0LOnl1nUrma 4OWqPbIUDN8RF4TI+Vv72HJMUo58oS1d68eWhNB3zGETdw2JqNiqsLeIlMamwtxm00Ce Rg9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=YPocWLFp; 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 s11-20020a63b40b000000b004e0d688fb81si1055840pgf.837.2023.01.27.06.03.01; Fri, 27 Jan 2023 06:03:23 -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=YPocWLFp; 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 S234642AbjA0N7T (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233841AbjA0N61 (ORCPT ); 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 A5DA14C12; 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=HcMLUBBv5kU4oCgrunC1HBRLqGB7X6SZPTbL0RLGdhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YPocWLFppRhrVBUSadXnjW2PbcveTEJ7ayd6zhoYYAyKgqxdHmbNIlGoyuzrYbc6h 769NEIIXvDTIIleuCI4lBCSYvHpx4gf4mriFlQtEB25c0x6RL0gYOeUgyOnFeaOxsR G/MytwvSyx2y8TRsbeXW38EUz806W1n8lC0w6OhbLhoc62oeiU/tDqrNohyC0bBoGn aP8I+nPsisY66F0LWrx7A7jI+FDT8azjGDV4g1SfxSqBEqf0h666RybVtN+nkfvs94 9Bi8VMZ8PLUM9qgsXpPMFo45hcbGUfZoAH+4HKIzQW4AUzIEjQN3MEG9BE/9Po6XSq He0jMM5YKQVaQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z64fszhTB; Fri, 27 Jan 2023 08:58:06 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 27/34] selftests: user_events: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:48 -0500 Message-Id: <20230127135755.79929-28-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184658649448101?= X-GMAIL-MSGID: =?utf-8?q?1756184658649448101?= 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/user_events/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/user_events/Makefile b/tools/testing/selftests/user_events/Makefile index c765d8635d9a..87d54c640068 100644 --- a/tools/testing/selftests/user_events/Makefile +++ b/tools/testing/selftests/user_events/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wl,-no-as-needed -Wall -I../../../../usr/include +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) LDLIBS += -lrt -lpthread -lm TEST_GEN_PROGS = ftrace_test dyn_test perf_test From patchwork Fri Jan 27 13:57:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49425 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848221wrn; Fri, 27 Jan 2023 06:02:32 -0800 (PST) X-Google-Smtp-Source: AK7set/NpdxXmOQI6ZCPhA/mqbj2PI07i6qU3kUlQzBeF3XHEiqLkXxXopDopfvvJAnmLCl84DVu X-Received: by 2002:a17:906:4793:b0:87b:db62:d659 with SMTP id cw19-20020a170906479300b0087bdb62d659mr1583951ejc.19.1674828152274; Fri, 27 Jan 2023 06:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828152; cv=none; d=google.com; s=arc-20160816; b=ODrG7KH9qxZZm9X5JCQb5E3VWc17l9muFUWT6Ax7RdzmyB4XXxCwOZ5CtHkdP2AlPf 24/DniYXJmav6Oh14fznF8d3Oteegpj+tdmYtT4jBH7bU6jDkxgQRNsTLHYQ2SGmVD2y dWV6GMq3P4LuoW6fBvkvvk/hI8ZQaOO8VIC7V65yfu/eRbnyDqWkngXGA2J68+L8NXI4 qPOKbph1TlKhpJc4bRknnMHoOlrkb4m+6bcibQQt2U1SfcJKUgS6sHpTHtpOI74PeQPp geQJMQaN7p1gToKZ61RbEc2M4rbknwPC1fybS9E6urKJTFRrXlWrrfzgh/OD94S5KeuT ejbA== 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=MigioHZSDdUr3We4r/D4SXd98xXMnOIbYZ18nULaFnc=; b=HLWRC9mmI85k2tr+NZ2g8HxVNLKfAr3oekBS/Lti2fpwiIV+sBIm22pcT/87jEGKJw zpJS2l8YEyh8KFJ7DGf9fbvDOnea5Dvh1xnNW2Q3n6eW/5ZQpucUKFxQReK+DUBn94+a ysxmhg6aA/ggNk/aCq3+g/bIH1CtzElarLUqN0SskJx1/GgOhKEnT8c7BTzyuOvcGt+v su+svqXyUDD/wSuGFAds8ugguvwDSGOxkMSVmDS3kzMzNg7HqWcwql0IgiCZbX/NDfn6 c89mVUY6cu4me9hTYFwmC7BjCq9jSuo/hTz/iZ8Io9EzlRFCETmCv38lcijK4nDcQXIC ptCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=jJUXxRiR; 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 rh16-20020a17090720f000b00878591738a2si5019537ejb.159.2023.01.27.06.01.57; Fri, 27 Jan 2023 06:02:32 -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=jJUXxRiR; 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 S234879AbjA0N75 (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233844AbjA0N61 (ORCPT ); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E4BCC33; 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=1674827887; bh=xy8S0oG0BePuaWeh4M8cZcORhMtZodlbd32PaPCFpys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jJUXxRiRwMEefT7UguOIFbk5gJztZL6XDWpxFpy10V2dTCqCWiITpEwn9YMRU/pbN 7stY5+wVGhiOuy58hg8/5OcPGI3ERGS7X2iGMWnIQ1Gf4Ys2+Kos/ZyB00W6GojKed LrdkT+iOM1+94SKADgj3tl+oqbJjtWxRc9r2QVtr0zWI6OMC87h8b1mLHf4ZWsHHQM oPD9hi4y28T2eLiTEkyOLOgowKZRy3uSf2UqDxavMTQrHzHrqrmbaFlKU5SXAk/3Nw S+Lyi13DlHqmsE7WpV9c1V8HSwKrj3T9Hn6u1Jvvm0LKtzeVbPkEyNpQjyIPP9OvBU dIjYN4SF6CPkg== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0b0Wdlzhcx; Fri, 27 Jan 2023 08:58:07 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 28/34] selftests: vm: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:49 -0500 Message-Id: <20230127135755.79929-29-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184604263752806?= X-GMAIL-MSGID: =?utf-8?q?1756184604263752806?= 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+] Acked-by: Shuah Khan --- tools/testing/selftests/vm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index 89c14e41bd43..ac9366065fd2 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -25,7 +25,7 @@ MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/p # LDLIBS. MAKEFLAGS += --no-builtin-rules -CFLAGS = -Wall -I $(top_srcdir) -I $(top_srcdir)/usr/include $(EXTRA_CFLAGS) $(KHDR_INCLUDES) +CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) LDLIBS = -lrt -lpthread TEST_GEN_FILES = cow TEST_GEN_FILES += compaction_test From patchwork Fri Jan 27 13:57:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848121wrn; Fri, 27 Jan 2023 06:02:24 -0800 (PST) X-Google-Smtp-Source: AK7set8tkZMBLcTdwh6bIcjYqAFfJESv1vDZlr879ZoCR1CHHWo3QxfjGfRgGslr5ebuUIHpx/pb X-Received: by 2002:a17:906:b784:b0:878:6d84:b9dd with SMTP id dt4-20020a170906b78400b008786d84b9ddmr5149815ejb.58.1674828144058; Fri, 27 Jan 2023 06:02:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828144; cv=none; d=google.com; s=arc-20160816; b=gth67qwkeR+EvfyoIuLbVk4+m2MQQFkgswCZDKNT7VwTXl2tQv4o+Uc7p4C7L9AbZ2 /LdESiy0/S5jEvOO3N8926kGBfyXpoXR0YfwFUP1Q8FP9V+qHjR2YpgCAK3Be/IZVeb2 T4ZTox4cdHo47Zjoa8msG98yfC2jW2UZhr3x6/KlEP+E/O5QeC00nGxtqpr3kiAR6WOx RmnJD9NvRByDxRtA9onNfQ/5nTVu27S3gDmcInib9zf+ZZDo+Tx+jHO9TewPJ/OpKXbY 4Lda/hgjvqqiWIrm+PVDvMAPZKtEki6VsUE26nZevaVhHaIMSyRFsdZLIz5tFQevwF/O 1ZtQ== 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=3OiW9+wL8bHeNmfNvoucSzf4B0MhAF+vqOizP6lEFgE=; b=jfH/ElqN5l7/7SwsOpVt7ZCXP37R4X3C18bw0BZEIiB0U/LfO5e56mQepsSMvfvBb0 M8ZWHHTiZo/HMHZ3UIFAEuI9+8ErG0Q+hSuXtSC2cpwlExtp9LR5CChbzjOgBuAh0ofw LpO4h8ggJFGarLtdN5xqdW6UP7aT3DnBJlqKjhTBeTUcZ6Gg9o9Vs6icNi62NyKW5okP 7Vqrnp+RKglRE0fwMSHT5rO8xfQXf01OtLT4VphlxQrM2qfmni55SloOlRBXMFca1Bo4 vUQlkt1KGPCl6XHPwx3BoDfjRemNoCTR8fEGSdxot3mkrp1SKS9K4zX7oCdL3bsf/lRE /J+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=g5Zga5td; 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 e24-20020a170906749800b0087bd76ce97dsi2384054ejl.112.2023.01.27.06.01.52; Fri, 27 Jan 2023 06:02:24 -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=g5Zga5td; 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 S234853AbjA0N7x (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233690AbjA0N61 (ORCPT ); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9D432330D; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827887; bh=j0/J2jgcMN5hRuwHVS3PfRhowqmRAWi4T67r4xbEwTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5Zga5tdO5JSw6QnfEUZ26+JP3uOhBoA3BuGJ3CVbx9vWS26fhhaC+yo8NxIn+I3J WeeVZPQvl5aYTI7jz0B2VUikDtBkdR/IhBhPbR9uKbfcCL0PNTIIVtdMekDcFWV5NI m05d40See0UrY0VcbHo0B3+ItVQJ1VRc1Hr6yGeqhPI6f4KnEmyejIwFf+IfpL8Gml H3DuYDsxZ3Y0gy1WmwChq9tXUyJBfAmibJLoIVY8munkTuoVV+IpnMJmegaOw+Bm9V kAhPIqQ4j1w1bASt8es6XM7omVPSljOnDM2OT6p+uHeNA0FqeoVPZdHJ6Bng0W+qc5 zbn41+l3sc5zA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0b1wn8zhcy; Fri, 27 Jan 2023 08:58:07 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 29/34] selftests: x86: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:50 -0500 Message-Id: <20230127135755.79929-30-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184595625499367?= X-GMAIL-MSGID: =?utf-8?q?1756184595625499367?= 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/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index 0388c4d60af0..ca9374b56ead 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -34,7 +34,7 @@ BINARIES_64 := $(TARGETS_C_64BIT_ALL:%=%_64) BINARIES_32 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_32)) BINARIES_64 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_64)) -CFLAGS := -O2 -g -std=gnu99 -pthread -Wall +CFLAGS := -O2 -g -std=gnu99 -pthread -Wall $(KHDR_INCLUDES) # call32_from_64 in thunks.S uses absolute addresses. ifeq ($(CAN_BUILD_WITH_NOPIE),1) From patchwork Fri Jan 27 13:57:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp849233wrn; Fri, 27 Jan 2023 06:03:52 -0800 (PST) X-Google-Smtp-Source: AK7set/UOWa3YbC7QQyxFs8anE1PTsEBOjnhJP27Y4KVZwpKdyodH+J87HolHhB5k8fwzUZ7dYmc X-Received: by 2002:a17:90b:1a90:b0:22c:d44:5669 with SMTP id ng16-20020a17090b1a9000b0022c0d445669mr6721123pjb.22.1674828232479; Fri, 27 Jan 2023 06:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828232; cv=none; d=google.com; s=arc-20160816; b=XQ8xXm2a1lJtew1aySitUM2fbvTcXRbqyKcMI1q6nOvUSPE6/Oejcy1TsKcrshk3j/ zTRLpVMshvG6mvRCHmIjEfGDp24xPRykCNCfH1fD50+BX5xFhy6U7Y7fsKS/KjzjOYVz RSZaoS3aJvlKIKYAJXUiWfmYckHwmOlsBS/6kBHYK+2M4QFuKKyJWjKq9TPEVXJSTb/g TWsxzblJeEoDHBu+8KS3ld+rhrPZ3FrxHj0f7DHHN5SGACRm0RB+w8BjLaBSBYv/GsW5 BTDbmMf2lAhk7bl8GhEiQmIX/y7+H7LsfUTZXMjGfrxdZ52aVu43nhZvq5nQNp7LhskB IO6w== 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=A5XTFroFwvak3db3VEonrmAB0xhT6C/E1BSo03hxwj0=; b=xHTpH0XqEteqWNWgp5Fre47KlHJMOrTxxgVwUovcNGu3vd+g9PajA9/ur0BKDgbRlR f0GPd7AfCLxE4usjb+OVloLJRAOk1fzmopkvwef4XkASo+JWN3n5MAtOvf5ybFuoRlkO GVjDQRxmr8UU3bx4paFyQ66SgdeBKlac1cuP/FwRtWQTK2Ut900BQhUR+kAQtQp25aKc z0UytWy1RTatoIb3vTK/IX7hP26g92rDQ/eN/HBE30ANemcEeGLUIV04d+kzNN9YvmAH NlDxReCy2YYG60r7bh1VY7b2wyYDPFqqVN04Z96orrkLaa/ger/lJ8WKQEa7XbwdU6+F c8Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=egGwYK11; 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 l5-20020a17090a384500b0022c04ac48d0si4640173pjf.149.2023.01.27.06.03.23; Fri, 27 Jan 2023 06:03:52 -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=egGwYK11; 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 S234830AbjA0N7p (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233917AbjA0N62 (ORCPT ); Fri, 27 Jan 2023 08:58:28 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94BF22A2D; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827887; bh=6EmQnswFj6lYa3iuQ9jXx4tuzOMzQcsG7VTPpMJ0uK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=egGwYK11B2go2UrPsxHEmiyF+t/D82frZQ0me91eIRFDS45amBgD1+KWoOW6mCkcs DNcv3CHhYXh8e2yjKbr+CX5xhIMYMic6+lz0/6ulUAwBhrPoAUjg4ZdeDXXznD4glL FWl3u7+JEdDRIAx+dkuNgS9CyzUbyQAkG7gfPHai+OGAe6zk7eRDEmQHbyRzBVciTu It14tq5mEu4BbS3qJ/HNJbkQCgllavQMPnCaXseiV4rx/CoKHI+CgVqJVBTDF79LFk mvE9p3DFKANvMbcdmQ076hfMjDm3vu3kPQSEqBk/VJttmGpz7Y2qXDuLugqtYlNMAT WBaCIbLFkibjA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0b3PlGzhd0; Fri, 27 Jan 2023 08:58:07 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers Subject: [PATCH 30/34] selftests: bpf docs: Use installed kernel headers search path Date: Fri, 27 Jan 2023 08:57:51 -0500 Message-Id: <20230127135755.79929-31-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184688831187964?= X-GMAIL-MSGID: =?utf-8?q?1756184688831187964?= Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Acked-by: Shuah Khan --- tools/testing/selftests/bpf/Makefile.docs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefile.docs b/tools/testing/selftests/bpf/Makefile.docs index eb6a4fea8c79..0a538d873def 100644 --- a/tools/testing/selftests/bpf/Makefile.docs +++ b/tools/testing/selftests/bpf/Makefile.docs @@ -44,7 +44,7 @@ RST2MAN_DEP := $(shell command -v rst2man 2>/dev/null) # $1 - target for scripts/bpf_doc.py # $2 - man page section to generate the troff file define DOCS_RULES = -$(OUTPUT)bpf-$1.rst: ../../../../include/uapi/linux/bpf.h +$(OUTPUT)bpf-$1.rst: $(KHDR_INCLUDES)/linux/bpf.h $$(QUIET_GEN)../../../../scripts/bpf_doc.py $1 \ --filename $$< > $$@ From patchwork Fri Jan 27 13:57:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49420 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847597wrn; Fri, 27 Jan 2023 06:01:41 -0800 (PST) X-Google-Smtp-Source: AK7set9l/o+wItxe12dwZZXcsDzxmdD+1sy39k2PTFRXm1+X5lkfip6bNUHK+HrrE12w2Tq/4xkP X-Received: by 2002:aa7:c391:0:b0:4a0:b658:e583 with SMTP id k17-20020aa7c391000000b004a0b658e583mr8415390edq.15.1674828100974; Fri, 27 Jan 2023 06:01:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828100; cv=none; d=google.com; s=arc-20160816; b=mxDBCJSAYdMDz+RuQ4fxyOSiM6UmoRoX2A2bhlNpcjbmG3s2bQwPnSIU+5BsN08S+f rA0v7zbLm3NdS5dOYoX8QlQw2jhjbouhKhnFpbhAeT/SuzITFqyZwnYIdh/0fyto7h1k bpzcVRO0A1rMpMBndhE1yesjJiCDDX4oQc5ledPNh+rXJcp+hAUO5qD4JUv94HW3J1tX CCFggcUvLX2w/Uo/bHybbbrjNYUxR4GZ8eL6yMNxnWlSWW3dYFsr0RBV4MehkRYdqbQD dVTXhujjoB2keHGb2J+DMqC/e2EzJh7M46f+IQFbGfYxHcgzI1lH6PHNNBkyspYh6ffz ag1A== 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=uSkIkSI7+qw0/f1WiDKk4foCgk0z+085yEe1gvtvWTc=; b=PncOngV69mjyKqhlEA3QX2tZSL6+IUSb5Jh7Z4/gUU4SZECQ72hfNc/2Vx1yWe3Ww3 Yz0f32pzhfexY50GkkehnGzoC7nBIO6eYJWK/la37w4i8AiVEX8fSXIichMHhZW5Gvtu 4RE3yKf3vZucF+YP8svUjfYicF7pVzVZjbAJkeht39SjV3xRwhFI2mHR4g8/CJyfNXDd PC523+37My+FGDMeS8ME+xvQOfzYp2KgB95Dpvgb7eveVHYeQ58i/Z/4cxYQG2owoA4Z j5kDb8VDhXGqG7SaSdJJ+7c1GfdUFEf5zoWlRFd8Xc/jpt9qQd8dUXJGBTmCD0ZEETRq pzNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=nADncNqO; 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 i8-20020a50fc08000000b004a08f43bb56si5247366edr.527.2023.01.27.06.01.07; Fri, 27 Jan 2023 06:01:40 -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=nADncNqO; 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 S233958AbjA0N7d (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233874AbjA0N61 (ORCPT ); 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 C971622DEA; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827887; bh=A2b8o6oty9GzpUi8zjhclZWoYQFpT6qjrpjYSARikkE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nADncNqO72Pn1/py5FqzMU1ONtDv0Gri7IE2mo+VJzkkPO2S8tRlNSeSyf2qu4mjF px+5NyL8XWOeGearzT52XYVz1dIqjcvn2qyJQWoHeCXMeETDJQUuKlnmLOmNCPVr8q TuUUJinRk1T8jYIW2J5q9IIXhN+3sH+OCrrapr4oHHB6Wy5lGdPOHn2cBuDDBe4nrI nnSG1+GwoJyChQKoo2NW366BUhawaizfNr46+U4iD937YdfKX3vjFmi/4K7b7PUMn3 57e+g7rEaxjUo3uCYH6psRVc3b5Ud+SWmj95bxNOEn0JFCY8Q+LOKLj3xdV4mgcX4h mdw6q/tR0j1Aw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0b4lCwzhd1; Fri, 27 Jan 2023 08:58:07 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers Subject: [PATCH 31/34] selftests: iommu: Use installed kernel headers search path Date: Fri, 27 Jan 2023 08:57:52 -0500 Message-Id: <20230127135755.79929-32-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184550737927260?= X-GMAIL-MSGID: =?utf-8?q?1756184550737927260?= Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Remove bogus ../../../../include/ from the search path, because kernel source headers are not needed by those user-space selftests, and it causes issues because -I paths are searched before -isystem paths, and conflicts for files appearing both in kernel sources and in uapi headers with incompatible semantics (e.g. types.h). Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Acked-by: Shuah Khan --- tools/testing/selftests/iommu/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/iommu/Makefile b/tools/testing/selftests/iommu/Makefile index 7cb74d26f141..32c5fdfd0eef 100644 --- a/tools/testing/selftests/iommu/Makefile +++ b/tools/testing/selftests/iommu/Makefile @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only CFLAGS += -Wall -O2 -Wno-unused-function -CFLAGS += -I../../../../include/uapi/ -CFLAGS += -I../../../../include/ +CFLAGS += $(KHDR_INCLUDES) CFLAGS += -D_GNU_SOURCE From patchwork Fri Jan 27 13:57:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49428 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848655wrn; Fri, 27 Jan 2023 06:03:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsfdEL43VUcAdTYhQLihA0OtJFBquFb7lO8cdBUoNOAMrMAFXi0E4oKnQvJNhYP/v5xVdFC X-Received: by 2002:a17:907:8b08:b0:838:9b81:1c98 with SMTP id sz8-20020a1709078b0800b008389b811c98mr46408238ejc.1.1674828186988; Fri, 27 Jan 2023 06:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828186; cv=none; d=google.com; s=arc-20160816; b=gIGV2GEJy4XJtFQFNIaCaxbiyJibGWg2u7BYcTIK+gP5RABnkc55KmDiqzKnc+KhG3 fUImybbzkC2dHgR9B54vFAn1p7A9VwSzfmd1OJoUYo5+ZO7mgDshzLuUxNPXZ2Q/dpza QHChyu0sPdjofHZWghmE9nAASw41PH1WRmMRBa5haYby8Th6FrVGTy8SxEqfXV2sG8rv GzgvjdrE0Ew9C3pk3LPk0rd0VtjkynZp+ejfYaf13H5nR5EjWzaWINVYFt0dmWLwvTsO TWPxoXIcdruBqXBxDBbp/lLXWftcAW38+SMUdlgYOPdBeyQ3m+iTqvECilWvTusU5SqS 71bw== 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=LRVocivoJACqPcwVp5OZGha5MOnCFRkB+YmV2N3CXPw=; b=fGkNKG/8IBg7RbvS4tRi1Rs/J30xChxen8ikEAa/1LbEKDWCSW4C+PP7EauZ+taxXT y79Avqnf91idSM9a0E3ilQzH7byyQ9zmBIMjV4bnNtb3uSdP1iCs7Hl7NpswcFlbB6wU 9i5OdfoU0sqpgqWCQF/g/VTWkYTytj5rmDCEhQDgOyaZg+Q18btxyzqcts4ZSVA7mjXu HzgB0NDPCdL2SuMEKgun8x2qtVwRSX7YhhpQQQxmqURlV/bkVGDsVdzoIGAxinRmQuD+ rRfD5qj1pEPrPOYECfSaXdmyO/eJjhxHmcnlm8loNi5myXjk1GgktADaLGd33oGABt+n fGNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=l0DLJhDG; 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 d4-20020a17090692c400b0087bdb28557esi1443973ejx.736.2023.01.27.06.02.29; Fri, 27 Jan 2023 06:03:06 -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=l0DLJhDG; 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 S234898AbjA0N77 (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233932AbjA0N62 (ORCPT ); Fri, 27 Jan 2023 08:58:28 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C954A22A3B; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827887; bh=hrehtAX3imUhugArusDqj/IhIz0SGwkElj5egzGruEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l0DLJhDGVpXa4+wan766F8yUwg+B3BGzYcLfXu6Mqi07WJVDi4uiGz6caLG9OGKk6 D8+4nU1CGAOUIEEbz3VmrOjJKUHVqXnlJi0TDA3YWqfPWvOWbtkYMbKxBkV6Vk0+FY Yf5c4phci9EENQXEqQXWDEK4PvjDHpxaoCpG/g65arCNeXSIbwyTL8H6NirI/ctoCe pjrUKFyOusxmUMLt2gy2ukJDn9fE3//u5R1Ic0UbOHLFR4hEIa/1SSMZeYcpg3HdCK 56kM0PCv5Tl4B6bPUz94f4yaaPUyW+q25gfiHtY9fQ+kieMq5eyPE2U2rsY+j8Q8t1 /5rc45MbZdKbQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0b63kVzhd2; Fri, 27 Jan 2023 08:58:07 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers Subject: [PATCH 32/34] selftests: memfd: Use installed kernel headers search path Date: Fri, 27 Jan 2023 08:57:53 -0500 Message-Id: <20230127135755.79929-33-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 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_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184640953830350?= X-GMAIL-MSGID: =?utf-8?q?1756184640953830350?= Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Remove bogus ../../../../include/ from the search path, because kernel source headers are not needed by those user-space selftests, and it causes issues because -I paths are searched before -isystem paths, and conflicts for files appearing both in kernel sources and in uapi headers with incompatible semantics (e.g. types.h). Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar --- tools/testing/selftests/memfd/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/memfd/Makefile b/tools/testing/selftests/memfd/Makefile index 4da8b565fa32..163b6f68631c 100644 --- a/tools/testing/selftests/memfd/Makefile +++ b/tools/testing/selftests/memfd/Makefile @@ -1,8 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS += -D_FILE_OFFSET_BITS=64 -CFLAGS += -I../../../../include/uapi/ -CFLAGS += -I../../../../include/ -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := memfd_test TEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh From patchwork Fri Jan 27 13:57:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49436 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp849098wrn; Fri, 27 Jan 2023 06:03:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXsV1pB+9QuMGA5AhSwrz/TDHnJNhJnPC2RoBBFVStPNGhCyfOYLT114Zlnm1IQT8VCCzHpz X-Received: by 2002:a05:6a20:9399:b0:9d:efbf:7864 with SMTP id x25-20020a056a20939900b0009defbf7864mr48310259pzh.25.1674828223515; Fri, 27 Jan 2023 06:03:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828223; cv=none; d=google.com; s=arc-20160816; b=FMByYIEhNw0EzWq7Q4FNOHChCrNgEB6+Z4RTMv2K9p3Oco4B35qjmTlqHMwiuuIDtX kcdJ/ctSkYQxe2W/ysab67Md7gzia9IokZIXRHkUHwHZGbVuhZdXbPH60mBJTF+soPTr 64APO9RIv52gRCarL7R3sZtlU+OPLugVzgBGMBWktS5kXAGh06Xryr1eMOQI5QXqFOgN eTUG1+bsk2b1voNpRLu09NeG4i7uvb5EOmTTkGEQc5EXz8zY97ELxtrdQBfIL34EywLC pldyxoUai3pqRkPJkro1+8yBc0zJgJsZo71iifYJqpsElh+hObgN71tV9qrVq8L3P82n h73g== 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=cLlSt2GFLpF9C89zsOWEIdvU1mRm++XxWgpJFGO1BJg=; b=SqHkDuclwZcsexWb8xlfxmC9GH7CvxP8Ob/kBKNY/oy2e5t2MqEmwRCOPXkIuiB2LB hxexcKelP6K4rh38shFR1GiFpTn98+TXwdnMsw812Z8+e3gwhg/0h6mW3FkllFS9tZDT 92KdeldXO/Gjx/fDqWWb87nd7aFV/8wWtNZ6Ql+h+ABRXa8pufXTFpcEsveLX4A4+VyM +o0XOjA7ckVQ3hOmaQ+l0jCjn3Crvu54VCPkmRQjEjORXJkMBRSQUrYQIeiONd4BChCR qiFOqEuGHoynvqB7yhaX89/ZF6NYSqvA3wHnoN/QRjZFe8PXFhwgnck7DAZUUdFCdlNd JTdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=fx7Ccsg1; 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 i128-20020a636d86000000b004df978584dcsi2532269pgc.88.2023.01.27.06.03.20; Fri, 27 Jan 2023 06:03:43 -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=fx7Ccsg1; 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 S234814AbjA0N7i (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233688AbjA0N61 (ORCPT ); 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 C9C6C23308; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827888; bh=qyXkvYUwyIa3WaXYDPo/AGluylZ3rgz4mbOR6T5kRy8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fx7Ccsg1l4/bIlGKAci/UtOvrAJQFUWqzzn492GzbHcL4h1usGWczP/8oHFZbF5xo 8qfAjhTZ7Sa+22OS2kqcZWJIXdvqlo4M+/VOcV0BXZow1FkdctwFwLgW9ANI/IyZJS Zi+JLh0AQI6oJZslJIrl2/N6xATYSAuEsdq6WjD0Y1EcgeqqsbgbZ3TzqdJ8i4zESh so0TvFfUgEUkHw9oJL7Iv8DDfB+Po3DAJaX7UY9r7ZwC4/PEEsJIZ/s/4jFdTKjkU9 lPunRDoIzEN2mh+wPQL0bfWoF+gztAjdvSmLCVwIeuIjGKDQogXgs30C/aHRIGIfcv G4/tkHIXBe8OA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0c0JvFzhd3; Fri, 27 Jan 2023 08:58:08 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers Subject: [PATCH 33/34] selftests: ptrace: Use installed kernel headers search path Date: Fri, 27 Jan 2023 08:57:54 -0500 Message-Id: <20230127135755.79929-34-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184679547218146?= X-GMAIL-MSGID: =?utf-8?q?1756184679547218146?= Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar --- tools/testing/selftests/ptrace/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/selftests/ptrace/Makefile index 2f1f532c39db..96ffa94afb91 100644 --- a/tools/testing/selftests/ptrace/Makefile +++ b/tools/testing/selftests/ptrace/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -std=c99 -pthread -iquote../../../../include/uapi -Wall +CFLAGS += -std=c99 -pthread -Wall $(KHDR_INCLUDES) TEST_GEN_PROGS := get_syscall_info peeksiginfo vmaccess From patchwork Fri Jan 27 13:57:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848409wrn; Fri, 27 Jan 2023 06:02:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXvT5ajva7LwfYMPXAO17iPKs//9YBarlp32NcxpBZZlVqYtvmlIeGRAktwTX/Ic7A6ISBTl X-Received: by 2002:aa7:cd86:0:b0:499:27e8:94a3 with SMTP id x6-20020aa7cd86000000b0049927e894a3mr42503473edv.13.1674828168688; Fri, 27 Jan 2023 06:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828168; cv=none; d=google.com; s=arc-20160816; b=xlS7eLebB3Hcd+Ej0hLiLrp+L+Q+EQ5hGgNHTAvDQe2stb/2dc/Rf6gKnLGhMCLTny jLqcB7OvZfsZoQpO3TMg28WE9V2ULUZWcUxQCVXf9qARnoCmkHoTMtTW2QUeLMeuOQkw yD2zodqL+BfkAlGpn2daYHTvRaWrICUEzksi2bC63u0MIjAYGr16Q6Aq76OFXBq2K/IH CHTethz+ORCJg+tms3J6nZvCn5rVrL0gNe/t2mNNvfda8mh0c1TYx6lII7HtV//4V3de ax2fXwhkSb+uwQ6LeAw6SItTP6E0wUZaRl2mi7bH3kLt6+RpgoEGEIg+8WQb9FBPlNq8 PQRQ== 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=Tc3TNR6qwqFMtXZDZFyt/WHFGppnuLhcwQWOiCHNtfg=; b=KEuMOnV7bgG1Fc7sqBu3aqaWeght8VuKsuQlkSd1gTptwz7WWnBeaTGXjzb0676Mub zflbPioTxm9rkStotpQ2aQdLc+Em7VARN0rI2FygRmT0KuhSUbDCTWaGA33Qlx6KPH+N 93AsFeG2lw321HvEuoLCb0ioKJUFHgGPRF5iyLN1psxEXXQCUOpi1/Ii5fTokcnzgo+O X/7kAtAZ7tBKlPaTGLEFjbhtSKQrmolrzfrdxBpwYI5zByCpPNC33szNH6RivvUm20OF rmcxT9hB8bvKKH4+bryEXqokyks2tJaAtcwgdAqwAJo507DnZkFgVoG/JdF875neDSin J+8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=mvURC9U1; 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 d4-20020a056402400400b00485731f9eb0si5087797eda.345.2023.01.27.06.02.18; Fri, 27 Jan 2023 06:02:48 -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=mvURC9U1; 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 S234436AbjA0N7u (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233925AbjA0N62 (ORCPT ); Fri, 27 Jan 2023 08:58:28 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9AEA2312C; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827888; bh=7jIfTNCu7zpPLHJpUW3uli6pP+V4do4UcRBq1ufAji0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mvURC9U1jZI6BZB0ToC7FIqkTyLlEnklVvuXSavwfDi5OJBDX8BbJXZTVE79Ro1y6 qjBz5USNdaQ2LoEooh45BZZu4u+Rq89a3B6BiCzSpKF/+cY2d24icng8W/rckilmVS dEWIWRrHyG5u6e2QrwlYdQtH2dKLtY23jQ94Xl6RE5ByZ5jHlQFz4bvt3eduq19B1v lHNALEEByemodJogrT+eLdLnV+a2Bt8Rd8QOcsEZuJvb8wBRZOB/5FMC3ms4pqhG8D mLCtXVrL50YGcn2QL1btABgcOT7KTgpThZzkjbE9X5bsIV5Y6AMNERja4NMFJAr74T WL6yOCtK/O26A== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0c1jKPzhd4; Fri, 27 Jan 2023 08:58:08 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers Subject: [PATCH 34/34] selftests: tdx: Use installed kernel headers search path Date: Fri, 27 Jan 2023 08:57:55 -0500 Message-Id: <20230127135755.79929-35-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184621672942814?= X-GMAIL-MSGID: =?utf-8?q?1756184621672942814?= Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar --- tools/testing/selftests/tdx/Makefile | 2 +- tools/testing/selftests/tdx/tdx_guest_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/tdx/Makefile b/tools/testing/selftests/tdx/Makefile index 8dd43517cd55..306e9c4d5ef7 100644 --- a/tools/testing/selftests/tdx/Makefile +++ b/tools/testing/selftests/tdx/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -O3 -Wl,-no-as-needed -Wall -static +CFLAGS += -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) -static TEST_GEN_PROGS := tdx_guest_test diff --git a/tools/testing/selftests/tdx/tdx_guest_test.c b/tools/testing/selftests/tdx/tdx_guest_test.c index 2a2afd856798..81d8cb88ea1a 100644 --- a/tools/testing/selftests/tdx/tdx_guest_test.c +++ b/tools/testing/selftests/tdx/tdx_guest_test.c @@ -12,8 +12,8 @@ #include #include +#include #include "../kselftest_harness.h" -#include "../../../../include/uapi/linux/tdx-guest.h" #define TDX_GUEST_DEVNAME "/dev/tdx_guest" #define HEX_DUMP_SIZE 8