History

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.

H.J. Lu committed 12 years ago

Commit f8dcdf01 parent 38691652 files · +17 −17Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/shm.h+5−5
@@ -68,11 +68,11 @@ struct shminfo { · 67 unmodified lines
68 68
69struct shm_info {69struct 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