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