From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 154B53803FA; Mon, 6 Apr 2026 14:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775485200; cv=none; b=QhUP+OwlmCvTCQLqnIs0xYxYfc8Gf/7tbSX/8cS0WANm4tV9Jwe6BZmoTTxw06ozFGrF/0trvDLrImwI6wvpn7bME3eMg8R+Q73r/6MthjHNcwr8tJRJL8/b1djWCfS1wvw/MXb8oC5KkXTTN/wcUHamMKuIj2x+Gb6JYDH/Z0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775485200; c=relaxed/simple; bh=/Wvi9uebpP/hGBuUfLX+2dm76zvxNiYlkCrT9K3LAcE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SZvPj3NeUojv/YVRjIueHBuheVkfpl74uOp0zbTy8HL9wxjxrBhOtsz79FSL5p9SkyN720yHl035kyVjDq75ZTisAyIjyyPIkLCfeJV2ZF7T/OZ89afJLCnuy5bf2aji/jo4H9pgdpumPoSsQN7WhWq1qGDcbfenjwY7N9sAn7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dd+gFfhN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dd+gFfhN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E1D3C4CEF7; Mon, 6 Apr 2026 14:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775485199; bh=/Wvi9uebpP/hGBuUfLX+2dm76zvxNiYlkCrT9K3LAcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dd+gFfhNTjIpyf6jViQHbupUvZ+ogJxg6QL677/qqXhyKSc4nT5dRzgnutHQK8gzm l3TEgs24a7NVKsagi6MHg9bW9VM4VawufoTlOu8zd/P/Qu9SNhRWkSM72tWZ9lrWP3 PP3EhJX6QtEpvex/Rf2mG1leektT/xEzXCDaukuQBTPjK2bvdrtDVUogSfr123Ieax AThFAr+ZpdS/jGULRp6pDD14M20/saA/SROndo47qosOktmxx/z5wfV5hCR77Ne6to cW9v7/WoR4huhWjyEqILPsX0THrD5zJUxqRkeOH2HRCrb8fZ3MnTKGLmsonenK76W3 4NvqGdb82EaOQ== From: Mike Rapoport To: Andrew Morton , David Hildenbrand Cc: Baolin Wang , Barry Song , Dev Jain , Jason Gunthorpe , John Hubbard , "Liam R. Howlett" , Lance Yang , Leon Romanovsky , Lorenzo Stoakes , Mark Brown , Michal Hocko , Mike Rapoport , Nico Pache , Peter Xu , Ryan Roberts , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , Zi Yan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 23/53] selftests/mm: hugepage_settings: use unsigned long in detect_hugetlb_page_size Date: Mon, 6 Apr 2026 17:17:05 +0300 Message-ID: <20260406141735.2179309-24-rppt@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260406141735.2179309-1-rppt@kernel.org> References: <20260406141735.2179309-1-rppt@kernel.org> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Mike Rapoport (Microsoft)" ... instead of size_t to avoid type mismatch in 32 and 64 bit builds. Signed-off-by: Mike Rapoport (Microsoft) --- tools/testing/selftests/mm/hugepage_settings.c | 2 +- tools/testing/selftests/mm/hugepage_settings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/hugepage_settings.c b/tools/testing/selftests/mm/hugepage_settings.c index ebaa621c45c6..8f563315b1fc 100644 --- a/tools/testing/selftests/mm/hugepage_settings.c +++ b/tools/testing/selftests/mm/hugepage_settings.c @@ -399,7 +399,7 @@ bool thp_is_enabled(void) return mode == 1 || mode == 3; } -int detect_hugetlb_page_sizes(size_t sizes[], int max) +int detect_hugetlb_page_sizes(unsigned long sizes[], int max) { DIR *dir = opendir("/sys/kernel/mm/hugepages/"); int count = 0; diff --git a/tools/testing/selftests/mm/hugepage_settings.h b/tools/testing/selftests/mm/hugepage_settings.h index 320b97e768e8..9357d07e6c1b 100644 --- a/tools/testing/selftests/mm/hugepage_settings.h +++ b/tools/testing/selftests/mm/hugepage_settings.h @@ -90,7 +90,7 @@ bool thp_is_enabled(void); /* HugeTLB */ -int detect_hugetlb_page_sizes(size_t sizes[], int max); +int detect_hugetlb_page_sizes(unsigned long sizes[], int max); unsigned long default_huge_page_size(void); unsigned long get_free_hugepages(void); -- 2.53.0