Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21BBCC61DA4 for ; Fri, 27 Jan 2023 14:00:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234884AbjA0N75 (ORCPT ); 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/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 -- 2.25.1