From nobody Tue Feb 10 05:26:55 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A69F33EAEA; Wed, 7 Jan 2026 16:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767804544; cv=none; b=kzGmPZsnVfrjWccZeLPP4VPUYml3kYBQ7zRAOtgSLMsPLonlgiQsiIctrqEBoGLGQsWAUqcjx50nWXq2q6xQIxWFo55PfIvTDCwM6vSaVMH0Bl0Wj8QtCyOys+6SPD+V/rn0iAK9b2GvjR+urM+MNpoIBABijh/JSSLXu2AQxXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767804544; c=relaxed/simple; bh=2hMGx95vnh6gsO5PRXVTxc0UWEAyKtwTPhrSM17PS18=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GFhMV2cSCfWYjydWp8/NB1ZDxbxWGXpCITKQi5H+xUuOtr8u0C9s/ojx0Y+/7wuk2b/2H7dqMl77MYwvwDtmg9y68A2FbP+Qe3h9M2FXBu6qpp8MH6gXO3LWZGzSNDdybP+4RH0x4uIkz9AbA9lj4xOjQlNU8czo2Q9ciO/lLwI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5ACAA1655; Wed, 7 Jan 2026 08:48:47 -0800 (PST) Received: from e123572-lin.arm.com (e123572-lin.cambridge.arm.com [10.1.194.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B8E433F5A1; Wed, 7 Jan 2026 08:48:52 -0800 (PST) From: Kevin Brodsky To: linux-mm@kvack.org, linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Kevin Brodsky , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , Mark Brown , Ryan Roberts , Shuah Khan , Paolo Abeni , Yunsheng Lin Subject: [PATCH v2 2/8] selftests/mm: remove flaky header check Date: Wed, 7 Jan 2026 16:48:36 +0000 Message-ID: <20260107164842.3289559-3-kevin.brodsky@arm.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260107164842.3289559-1-kevin.brodsky@arm.com> References: <20260107164842.3289559-1-kevin.brodsky@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Commit 96ed62ea0298 ("mm: page_frag: fix a compile error when kernel is not compiled") introduced a check to avoid attempting to build the page_frag module if is missing. Unfortunately this check only works if KDIR points to /lib/modules/... or an in-tree kernel build. It always fails if KDIR points to an out-of-tree build (i.e. when the kernel was built with O=3D... make) because only generated headers are present under $KDIR/include/ in that case. A recent commit switched KDIR to default to the kernel's build directory, so that check is no longer justified. Cc: Paolo Abeni Cc: Yunsheng Lin Reviewed-by: Mark Brown Signed-off-by: Kevin Brodsky --- tools/testing/selftests/mm/Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/= mm/Makefile index bb93101e339e..4e5c8a330a0c 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -46,12 +46,8 @@ CFLAGS +=3D -U_FORTIFY_SOURCE =20 KDIR ?=3D $(if $(O),$(O),$(realpath ../../../..)) ifneq (,$(wildcard $(KDIR)/Module.symvers)) -ifneq (,$(wildcard $(KDIR)/include/linux/page_frag_cache.h)) TEST_GEN_MODS_DIR :=3D page_frag else -PAGE_FRAG_WARNING =3D "missing page_frag_cache.h, please use a newer kerne= l" -endif -else PAGE_FRAG_WARNING =3D "missing Module.symvers, please have the kernel buil= t first" endif =20 --=20 2.51.2