Skip to contentSkip to conversation

parisc: Fix shmid64_ds to use __kernel_size_t

PATCH New Helge Deller 1 participant 1 message Oct 28, 2015 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Fix shmid64_ds to use __kernel_size_t

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).

arch/parisc/include/uapi/asm/shmbuf.h +1 -1
index 8496c38..d48f67d 100644
@@ -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 */