[PATCH] selftests/mm: use long for dwRegionSize

2025-04-27 Thread Siddarth G
Change the type of 'dwRegionSize' in wp_init() and wp_free() from int to long to match callers that pass long or unsigned long long values. wp_addr_range function is left unchanged because it passes 'dwRegionSize' parameter directly to pagemap_ioctl, which expects an int. Sig

[PATCH v3] selftests/mm: Convert page_size to unsigned long

2025-04-03 Thread Siddarth G
anging hpage_size to 'unsigned long' was considered, but since gethugepage() expects an int, this change was avoided. Reported-by: David Binderman Closes: https://lore.kernel.org/all/as8pr02mb10217315060bbfdb21f19643e9c...@as8pr02mb10217.eurprd02.prod.outlook.com/ Signed-off-by: Siddarth G

[PATCH v2] selftests/mm: Convert page_size to unsigned long

2025-03-30 Thread Siddarth G
ght be required ? Reported-by: David Binderman Closes: https://lore.kernel.org/all/as8pr02mb10217315060bbfdb21f19643e9c...@as8pr02mb10217.eurprd02.prod.outlook.com/ Signed-off-by: Siddarth G --- Changes since v1: - Instead of using ULL suffixes, converted page_size and related variables in

[PATCH] selftests/mm: Fix loss of information warnings

2025-03-28 Thread Siddarth G
0217.eurprd02.prod.outlook.com/ Signed-off-by: Siddarth G --- tools/testing/selftests/mm/pagemap_ioctl.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/mm/pagemap_ioctl.c b/tools/testing/selftests/mm/pagemap_ioctl.c index 57b4bba2b45f..f