From nobody Sat Feb 7 11:31:33 2026 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B25CC19D07E for ; Thu, 23 Oct 2025 01:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761184080; cv=none; b=DqDDjdLh7iIZmU+mSxqNgvO8m6yzdKKkKfQNceorjbSOKu+XoYJtWLdJZQfyEwxayoxwY5z3J+HSuouCedb1JgGXV1K1TZwzGw8J+srHSwx2vXlYL0UpzejlHbNgnbHf5a1fxXFutGd3WrNLaNnJp21MBVc/U5fKSlmb6ctYluc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761184080; c=relaxed/simple; bh=yl7ozpiKizLFtYd5EiA7Rh/uHMgVMv4GyscwVnwRkCA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bENprPWXAxQoa0vN4gn2mvmFxgbm4rMUcT9rXgNrAVNY8F6OC1eJnF/MXBPzszGe1lxtVrQ/Tmj3XlHlrXSr0xx6O6HVOMfmy8IjiSovZG4k4jow+BLFlHR0F63cCeUNZq2NPwXMi/egY/wqsfICu3DY7aNo2QjmyE+nPdDc0ZE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=X4jImpxd; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="X4jImpxd" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1761184065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jPBHSIhisQYB9BOAqxE6p2j3YHbxjnfcV2vPoexza38=; b=X4jImpxdfP/eaQ4Vt75iKwYNUOphmJJbwKZUq/CsVqk0mC6J0eOj/pMI6m6uC95+qqIiO5 G6NsT5+LdFGxSXv6W1AQkZCOkBhuQEmxirpnQ95l+4Xkn3I9LX3y9IuevZzzvbXZLEnvLC rJGGWYtiCctl98tlz5TCW8mT0+neias= From: Leon Hwang To: stable@vger.kernel.org, greg@kroah.com Cc: akpm@linux-foundation.org, david@redhat.com, lorenzo.stoakes@oracle.com, lance.yang@linux.dev, shuah@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Leon Hwang Subject: [PATCH 6.1.y v2] Revert "selftests: mm: fix map_hugetlb failure on 64K page size systems" Date: Thu, 23 Oct 2025 09:47:32 +0800 Message-ID: <20251023014732.73721-1-leon.hwang@linux.dev> 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 X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" This reverts commit a584c7734a4dd050451fcdd65c66317e15660e81 to avoid the build error: map_hugetlb.c: In function 'main': map_hugetlb.c:79:25: warning: implicit declaration of function 'default_hug= e_page_size' [-Wimplicit-function-declaration] 79 | hugepage_size =3D default_huge_page_size(); Signed-off-by: Leon Hwang --- v1 -> v2: - Revert the commit instead of fixing the build error. - https://lore.kernel.org/linux-mm/20251022055138.375042-1-leon.hwang@lin= ux.dev/ tools/testing/selftests/vm/map_hugetlb.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/testing/selftests/vm/map_hugetlb.c b/tools/testing/selft= ests/vm/map_hugetlb.c index c65c55b7a789..312889edb84a 100644 --- a/tools/testing/selftests/vm/map_hugetlb.c +++ b/tools/testing/selftests/vm/map_hugetlb.c @@ -15,7 +15,6 @@ #include #include #include -#include "vm_util.h" #define LENGTH (256UL*1024*1024) #define PROTECTION (PROT_READ | PROT_WRITE) @@ -71,16 +70,10 @@ int main(int argc, char **argv) { void *addr; int ret; - size_t hugepage_size; size_t length =3D LENGTH; int flags =3D FLAGS; int shift =3D 0; - hugepage_size =3D default_huge_page_size(); - /* munmap with fail if the length is not page aligned */ - if (hugepage_size > length) - length =3D hugepage_size; - if (argc > 1) length =3D atol(argv[1]) << 20; if (argc > 2) { -- 2.51.0