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
6868
6969 struct shm_info {
7070 int used_ids;
71− unsigned long shm_tot; /* total allocated shm */
72− unsigned long shm_rss; /* total resident shm */
73− unsigned long shm_swp; /* total swapped shm */
74− unsigned long swap_attempts;
75− unsigned long swap_successes;
71+ __kernel_ulong_t shm_tot; /* total allocated shm */
72+ __kernel_ulong_t shm_rss; /* total resident shm */
73+ __kernel_ulong_t shm_swp; /* total swapped shm */
74+ __kernel_ulong_t swap_attempts;
75+ __kernel_ulong_t swap_successes;
7676 };
7777
7878