From nobody Mon Feb 9 17:23:02 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9610353ECA; Thu, 22 Jan 2026 17:02:41 +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=1769101368; cv=none; b=VbOdPnYLxo6ySd9xIRrYhYyC1Vgecycij47qXvUHMvCO0DI3mbpa1H12liUxqqQHzPfc24tHp1IOBBcmRy9AuvyZiTzG04cOVKmd80H5a78/8qEApzHE0xkMVf8ZgIORIAM++PHCaLY4+uo+mbXtqVEQSkuntHcxB8UBonfFxBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769101368; c=relaxed/simple; bh=2hMGx95vnh6gsO5PRXVTxc0UWEAyKtwTPhrSM17PS18=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DMdk3H4kfallLUPstaNZuduSw6jR+sVlpKw/RnwQ5r4AnCjCy0yFsBb33ortGwNRyzzdHxezbDDfXAqllqdOcz6q3tldu7ZNVCAD1/PJjDvZRszkM4nERVCtjUu6EiITWQu2JnK3i6L8cLrfxDWEG2JKcNtsogRkSmPWUxrlPOA= 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 523D41517; Thu, 22 Jan 2026 09:02:31 -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 560B83F632; Thu, 22 Jan 2026 09:02:36 -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 , Dev Jain , Lorenzo Stoakes , Mark Brown , Ryan Roberts , Shuah Khan , Paolo Abeni , Yunsheng Lin Subject: [PATCH v3 2/9] selftests/mm: remove flaky header check Date: Thu, 22 Jan 2026 17:02:17 +0000 Message-ID: <20260122170224.4056513-3-kevin.brodsky@arm.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260122170224.4056513-1-kevin.brodsky@arm.com> References: <20260122170224.4056513-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