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