uapi: Use __kernel_ulong_t in shmid64_ds/shminfo64/shm_info
Both x32 and x86-64 use the same struct shmid64_ds/shminfo64/shm_info for system calls. But x32 long is 32-bit. This patch replaces unsigned long with __kernel_ulong_t in struct shmid64_ds/shminfo64/shm_info. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Link: http://lkml.kernel.org/r/1388182464-28428-8-git-send-email-hjl.tools@gmail.com Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
		
					parent
					
						
							
								386916598e
							
						
					
				
			
			
				commit
				
					
						f8dcdf0130
					
				
			
		
					 2 changed files with 17 additions and 17 deletions
				
			
		|  | @ -68,11 +68,11 @@ struct	shminfo { | |||
| 
 | ||||
| struct shm_info { | ||||
| 	int used_ids; | ||||
| 	unsigned long shm_tot;	/* total allocated shm */ | ||||
| 	unsigned long shm_rss;	/* total resident shm */ | ||||
| 	unsigned long shm_swp;	/* total swapped shm */ | ||||
| 	unsigned long swap_attempts; | ||||
| 	unsigned long swap_successes; | ||||
| 	__kernel_ulong_t shm_tot;	/* total allocated shm */ | ||||
| 	__kernel_ulong_t shm_rss;	/* total resident shm */ | ||||
| 	__kernel_ulong_t shm_swp;	/* total swapped shm */ | ||||
| 	__kernel_ulong_t swap_attempts; | ||||
| 	__kernel_ulong_t swap_successes; | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 H.J. Lu
				H.J. Lu