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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -68,11 +68,11 @@ struct shminfo { · 67 unmodified lines | |||
| 68 | 68 | ||
| 69 | struct shm_info { | 69 | struct shm_info { |
| 70 | int used_ids; | 70 | int used_ids; |
| 71 | unsigned long shm_tot; /* total allocated shm */ | 71 | __kernel_ulong_t shm_tot; /* total allocated shm */ |
| 72 | unsigned long shm_rss; /* total resident shm */ | 72 | __kernel_ulong_t shm_rss; /* total resident shm */ |
| 73 | unsigned long shm_swp; /* total swapped shm */ | 73 | __kernel_ulong_t shm_swp; /* total swapped shm */ |
| 74 | unsigned long swap_attempts; | 74 | __kernel_ulong_t swap_attempts; |
| 75 | unsigned long swap_successes; | 75 | __kernel_ulong_t swap_successes; |
| 76 | }; | 76 | }; |
| 77 | 77 | ||
| 78 | 78 | ||