diff options
-rw-r--r-- | include/linux/ipc_namespace.h | 2 | ||||
-rw-r--r-- | ipc/shm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ipc_namespace.h b/include/linux/ipc_namespace.h index ae221a7b5092..c4d870b0d5e6 100644 --- a/include/linux/ipc_namespace.h +++ b/include/linux/ipc_namespace.h | |||
@@ -43,8 +43,8 @@ struct ipc_namespace { | |||
43 | 43 | ||
44 | size_t shm_ctlmax; | 44 | size_t shm_ctlmax; |
45 | size_t shm_ctlall; | 45 | size_t shm_ctlall; |
46 | unsigned long shm_tot; | ||
46 | int shm_ctlmni; | 47 | int shm_ctlmni; |
47 | int shm_tot; | ||
48 | /* | 48 | /* |
49 | * Defines whether IPC_RMID is forced for _all_ shm segments regardless | 49 | * Defines whether IPC_RMID is forced for _all_ shm segments regardless |
50 | * of shmctl() | 50 | * of shmctl() |
@@ -462,7 +462,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) | |||
462 | size_t size = params->u.size; | 462 | size_t size = params->u.size; |
463 | int error; | 463 | int error; |
464 | struct shmid_kernel *shp; | 464 | struct shmid_kernel *shp; |
465 | int numpages = (size + PAGE_SIZE -1) >> PAGE_SHIFT; | 465 | size_t numpages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; |
466 | struct file * file; | 466 | struct file * file; |
467 | char name[13]; | 467 | char name[13]; |
468 | int id; | 468 | int id; |