Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/mm: use long for dwRegionSize

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.

This patch does not fix any actual known issues. It aligns parameter
types with their actual usage and avoids any potential future issues.

Link: https://lkml.kernel.org/r/20250427102639.39978-1-siddarthsgml@gmail.com
Signed-off-by: Siddarth G <siddarthsgml@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Siddarth G and committed by
Andrew Morton
d48e8d27 a3365bdc

+2 -2
+2 -2
tools/testing/selftests/mm/pagemap_ioctl.c
··· 112 112 return 0; 113 113 } 114 114 115 - int wp_init(void *lpBaseAddress, int dwRegionSize) 115 + int wp_init(void *lpBaseAddress, long dwRegionSize) 116 116 { 117 117 struct uffdio_register uffdio_register; 118 118 struct uffdio_writeprotect wp; ··· 136 136 return 0; 137 137 } 138 138 139 - int wp_free(void *lpBaseAddress, int dwRegionSize) 139 + int wp_free(void *lpBaseAddress, long dwRegionSize) 140 140 { 141 141 struct uffdio_register uffdio_register; 142 142