* [PATCH] parisc: Fix shmid64_ds to use __kernel_size_t
@ 2015-10-28 22:21 Helge Deller
0 siblings, 0 replies; only message in thread
From: Helge Deller @ 2015-10-28 22:21 UTC (permalink / raw)
To: linux-parisc, James Bottomley, John David Anglin
size_t is either 32 or 64bit. Make struct shmid64_ds clean for 32- and
64-bit userspace (even if we do not have a 64-bit userspace yet).
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/arch/parisc/include/uapi/asm/shmbuf.h b/arch/parisc/include/uapi/asm/shmbuf.h
index 8496c38..d48f67d 100644
--- a/arch/parisc/include/uapi/asm/shmbuf.h
+++ b/arch/parisc/include/uapi/asm/shmbuf.h
@@ -30,7 +30,7 @@ struct shmid64_ds {
#if __BITS_PER_LONG != 64
unsigned int __pad4;
#endif
- size_t shm_segsz; /* size of segment (bytes) */
+ __kernel_size_t shm_segsz; /* size of segment (bytes) */
__kernel_pid_t shm_cpid; /* pid of creator */
__kernel_pid_t shm_lpid; /* pid of last operator */
unsigned int shm_nattch; /* no. of current attaches */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-28 22:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 22:21 [PATCH] parisc: Fix shmid64_ds to use __kernel_size_t Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).