diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bootmem.h | 37 | ||||
| -rw-r--r-- | include/linux/interrupt.h | 2 | ||||
| -rw-r--r-- | include/linux/ipc.h | 2 | ||||
| -rw-r--r-- | include/linux/ipc_namespace.h | 1 | ||||
| -rw-r--r-- | include/linux/msg.h | 2 | ||||
| -rw-r--r-- | include/linux/shm.h | 2 | ||||
| -rw-r--r-- | include/linux/splice.h | 3 |
7 files changed, 43 insertions, 6 deletions
diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 2fae55def608..b388223bd4a9 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h | |||
| @@ -175,6 +175,27 @@ static inline void * __init memblock_virt_alloc_nopanic( | |||
| 175 | NUMA_NO_NODE); | 175 | NUMA_NO_NODE); |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | #ifndef ARCH_LOW_ADDRESS_LIMIT | ||
| 179 | #define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL | ||
| 180 | #endif | ||
| 181 | |||
| 182 | static inline void * __init memblock_virt_alloc_low( | ||
| 183 | phys_addr_t size, phys_addr_t align) | ||
| 184 | { | ||
| 185 | return memblock_virt_alloc_try_nid(size, align, | ||
| 186 | BOOTMEM_LOW_LIMIT, | ||
| 187 | ARCH_LOW_ADDRESS_LIMIT, | ||
| 188 | NUMA_NO_NODE); | ||
| 189 | } | ||
| 190 | static inline void * __init memblock_virt_alloc_low_nopanic( | ||
| 191 | phys_addr_t size, phys_addr_t align) | ||
| 192 | { | ||
| 193 | return memblock_virt_alloc_try_nid_nopanic(size, align, | ||
| 194 | BOOTMEM_LOW_LIMIT, | ||
| 195 | ARCH_LOW_ADDRESS_LIMIT, | ||
| 196 | NUMA_NO_NODE); | ||
| 197 | } | ||
| 198 | |||
| 178 | static inline void * __init memblock_virt_alloc_from_nopanic( | 199 | static inline void * __init memblock_virt_alloc_from_nopanic( |
| 179 | phys_addr_t size, phys_addr_t align, phys_addr_t min_addr) | 200 | phys_addr_t size, phys_addr_t align, phys_addr_t min_addr) |
| 180 | { | 201 | { |
| @@ -238,6 +259,22 @@ static inline void * __init memblock_virt_alloc_nopanic( | |||
| 238 | return __alloc_bootmem_nopanic(size, align, BOOTMEM_LOW_LIMIT); | 259 | return __alloc_bootmem_nopanic(size, align, BOOTMEM_LOW_LIMIT); |
| 239 | } | 260 | } |
| 240 | 261 | ||
| 262 | static inline void * __init memblock_virt_alloc_low( | ||
| 263 | phys_addr_t size, phys_addr_t align) | ||
| 264 | { | ||
| 265 | if (!align) | ||
| 266 | align = SMP_CACHE_BYTES; | ||
| 267 | return __alloc_bootmem_low(size, align, BOOTMEM_LOW_LIMIT); | ||
| 268 | } | ||
| 269 | |||
| 270 | static inline void * __init memblock_virt_alloc_low_nopanic( | ||
| 271 | phys_addr_t size, phys_addr_t align) | ||
| 272 | { | ||
| 273 | if (!align) | ||
| 274 | align = SMP_CACHE_BYTES; | ||
| 275 | return __alloc_bootmem_low_nopanic(size, align, BOOTMEM_LOW_LIMIT); | ||
| 276 | } | ||
| 277 | |||
| 241 | static inline void * __init memblock_virt_alloc_from_nopanic( | 278 | static inline void * __init memblock_virt_alloc_from_nopanic( |
| 242 | phys_addr_t size, phys_addr_t align, phys_addr_t min_addr) | 279 | phys_addr_t size, phys_addr_t align, phys_addr_t min_addr) |
| 243 | { | 280 | { |
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index db43b58a3355..0053adde0ed9 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
| @@ -360,7 +360,7 @@ enum | |||
| 360 | /* map softirq index to softirq name. update 'softirq_to_name' in | 360 | /* map softirq index to softirq name. update 'softirq_to_name' in |
| 361 | * kernel/softirq.c when adding a new softirq. | 361 | * kernel/softirq.c when adding a new softirq. |
| 362 | */ | 362 | */ |
| 363 | extern char *softirq_to_name[NR_SOFTIRQS]; | 363 | extern const char * const softirq_to_name[NR_SOFTIRQS]; |
| 364 | 364 | ||
| 365 | /* softirq mask and active fields moved to irq_cpustat_t in | 365 | /* softirq mask and active fields moved to irq_cpustat_t in |
| 366 | * asm/hardirq.h to get better cache usage. KAO | 366 | * asm/hardirq.h to get better cache usage. KAO |
diff --git a/include/linux/ipc.h b/include/linux/ipc.h index 8d861b2651f7..9d84942ae2e5 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | struct kern_ipc_perm | 11 | struct kern_ipc_perm |
| 12 | { | 12 | { |
| 13 | spinlock_t lock; | 13 | spinlock_t lock; |
| 14 | int deleted; | 14 | bool deleted; |
| 15 | int id; | 15 | int id; |
| 16 | key_t key; | 16 | key_t key; |
| 17 | kuid_t uid; | 17 | kuid_t uid; |
diff --git a/include/linux/ipc_namespace.h b/include/linux/ipc_namespace.h index f6c82de12541..e7831d203737 100644 --- a/include/linux/ipc_namespace.h +++ b/include/linux/ipc_namespace.h | |||
| @@ -21,7 +21,6 @@ struct user_namespace; | |||
| 21 | struct ipc_ids { | 21 | struct ipc_ids { |
| 22 | int in_use; | 22 | int in_use; |
| 23 | unsigned short seq; | 23 | unsigned short seq; |
| 24 | unsigned short seq_max; | ||
| 25 | struct rw_semaphore rwsem; | 24 | struct rw_semaphore rwsem; |
| 26 | struct idr ipcs_idr; | 25 | struct idr ipcs_idr; |
| 27 | int next_id; | 26 | int next_id; |
diff --git a/include/linux/msg.h b/include/linux/msg.h index e21f9d44307f..f3f302f9c197 100644 --- a/include/linux/msg.h +++ b/include/linux/msg.h | |||
| @@ -9,7 +9,7 @@ struct msg_msg { | |||
| 9 | struct list_head m_list; | 9 | struct list_head m_list; |
| 10 | long m_type; | 10 | long m_type; |
| 11 | size_t m_ts; /* message text size */ | 11 | size_t m_ts; /* message text size */ |
| 12 | struct msg_msgseg* next; | 12 | struct msg_msgseg *next; |
| 13 | void *security; | 13 | void *security; |
| 14 | /* the actual message follows immediately */ | 14 | /* the actual message follows immediately */ |
| 15 | }; | 15 | }; |
diff --git a/include/linux/shm.h b/include/linux/shm.h index 429c1995d756..1e2cd2e6b540 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | struct shmid_kernel /* private to the kernel */ | 9 | struct shmid_kernel /* private to the kernel */ |
| 10 | { | 10 | { |
| 11 | struct kern_ipc_perm shm_perm; | 11 | struct kern_ipc_perm shm_perm; |
| 12 | struct file * shm_file; | 12 | struct file *shm_file; |
| 13 | unsigned long shm_nattch; | 13 | unsigned long shm_nattch; |
| 14 | unsigned long shm_segsz; | 14 | unsigned long shm_segsz; |
| 15 | time_t shm_atim; | 15 | time_t shm_atim; |
diff --git a/include/linux/splice.h b/include/linux/splice.h index 74575cbf2d6f..0e43906d2fda 100644 --- a/include/linux/splice.h +++ b/include/linux/splice.h | |||
| @@ -24,7 +24,8 @@ | |||
| 24 | * Passed to the actors | 24 | * Passed to the actors |
| 25 | */ | 25 | */ |
| 26 | struct splice_desc { | 26 | struct splice_desc { |
| 27 | unsigned int len, total_len; /* current and remaining length */ | 27 | size_t total_len; /* remaining length */ |
| 28 | unsigned int len; /* current length */ | ||
| 28 | unsigned int flags; /* splice flags */ | 29 | unsigned int flags; /* splice flags */ |
| 29 | /* | 30 | /* |
| 30 | * actor() private data | 31 | * actor() private data |
