forked from mirrors/linux
		
	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>
This commit is contained in:
		
							parent
							
								
									a3365bdca2
								
							
						
					
					
						commit
						d48e8d27cd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -112,7 +112,7 @@ int init_uffd(void) | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int wp_init(void *lpBaseAddress, int dwRegionSize) | int wp_init(void *lpBaseAddress, long dwRegionSize) | ||||||
| { | { | ||||||
| 	struct uffdio_register uffdio_register; | 	struct uffdio_register uffdio_register; | ||||||
| 	struct uffdio_writeprotect wp; | 	struct uffdio_writeprotect wp; | ||||||
|  | @ -136,7 +136,7 @@ int wp_init(void *lpBaseAddress, int dwRegionSize) | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int wp_free(void *lpBaseAddress, int dwRegionSize) | int wp_free(void *lpBaseAddress, long dwRegionSize) | ||||||
| { | { | ||||||
| 	struct uffdio_register uffdio_register; | 	struct uffdio_register uffdio_register; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Siddarth G
						Siddarth G