diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/bootmem.h | 5 | ||||
-rw-r--r-- | include/linux/kexec.h | 3 | ||||
-rw-r--r-- | include/linux/memblock.h | 1 | ||||
-rw-r--r-- | include/linux/mm.h | 1 | ||||
-rw-r--r-- | include/linux/swiotlb.h | 2 |
5 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 3f778c27f825..3cd16ba82f15 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h | |||
@@ -99,6 +99,9 @@ void *___alloc_bootmem_node_nopanic(pg_data_t *pgdat, | |||
99 | extern void *__alloc_bootmem_low(unsigned long size, | 99 | extern void *__alloc_bootmem_low(unsigned long size, |
100 | unsigned long align, | 100 | unsigned long align, |
101 | unsigned long goal); | 101 | unsigned long goal); |
102 | void *__alloc_bootmem_low_nopanic(unsigned long size, | ||
103 | unsigned long align, | ||
104 | unsigned long goal); | ||
102 | extern void *__alloc_bootmem_low_node(pg_data_t *pgdat, | 105 | extern void *__alloc_bootmem_low_node(pg_data_t *pgdat, |
103 | unsigned long size, | 106 | unsigned long size, |
104 | unsigned long align, | 107 | unsigned long align, |
@@ -132,6 +135,8 @@ extern void *__alloc_bootmem_low_node(pg_data_t *pgdat, | |||
132 | 135 | ||
133 | #define alloc_bootmem_low(x) \ | 136 | #define alloc_bootmem_low(x) \ |
134 | __alloc_bootmem_low(x, SMP_CACHE_BYTES, 0) | 137 | __alloc_bootmem_low(x, SMP_CACHE_BYTES, 0) |
138 | #define alloc_bootmem_low_pages_nopanic(x) \ | ||
139 | __alloc_bootmem_low_nopanic(x, PAGE_SIZE, 0) | ||
135 | #define alloc_bootmem_low_pages(x) \ | 140 | #define alloc_bootmem_low_pages(x) \ |
136 | __alloc_bootmem_low(x, PAGE_SIZE, 0) | 141 | __alloc_bootmem_low(x, PAGE_SIZE, 0) |
137 | #define alloc_bootmem_low_pages_node(pgdat, x) \ | 142 | #define alloc_bootmem_low_pages_node(pgdat, x) \ |
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index d0b8458a703a..d2e6927bbaae 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
@@ -191,6 +191,7 @@ extern struct kimage *kexec_crash_image; | |||
191 | /* Location of a reserved region to hold the crash kernel. | 191 | /* Location of a reserved region to hold the crash kernel. |
192 | */ | 192 | */ |
193 | extern struct resource crashk_res; | 193 | extern struct resource crashk_res; |
194 | extern struct resource crashk_low_res; | ||
194 | typedef u32 note_buf_t[KEXEC_NOTE_BYTES/4]; | 195 | typedef u32 note_buf_t[KEXEC_NOTE_BYTES/4]; |
195 | extern note_buf_t __percpu *crash_notes; | 196 | extern note_buf_t __percpu *crash_notes; |
196 | extern u32 vmcoreinfo_note[VMCOREINFO_NOTE_SIZE/4]; | 197 | extern u32 vmcoreinfo_note[VMCOREINFO_NOTE_SIZE/4]; |
@@ -199,6 +200,8 @@ extern size_t vmcoreinfo_max_size; | |||
199 | 200 | ||
200 | int __init parse_crashkernel(char *cmdline, unsigned long long system_ram, | 201 | int __init parse_crashkernel(char *cmdline, unsigned long long system_ram, |
201 | unsigned long long *crash_size, unsigned long long *crash_base); | 202 | unsigned long long *crash_size, unsigned long long *crash_base); |
203 | int parse_crashkernel_low(char *cmdline, unsigned long long system_ram, | ||
204 | unsigned long long *crash_size, unsigned long long *crash_base); | ||
202 | int crash_shrink_memory(unsigned long new_size); | 205 | int crash_shrink_memory(unsigned long new_size); |
203 | size_t crash_get_memory_size(void); | 206 | size_t crash_get_memory_size(void); |
204 | void crash_free_reserved_phys_range(unsigned long begin, unsigned long end); | 207 | void crash_free_reserved_phys_range(unsigned long begin, unsigned long end); |
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index d452ee191066..f388203db7e8 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -155,6 +155,7 @@ phys_addr_t memblock_alloc_base(phys_addr_t size, phys_addr_t align, | |||
155 | phys_addr_t __memblock_alloc_base(phys_addr_t size, phys_addr_t align, | 155 | phys_addr_t __memblock_alloc_base(phys_addr_t size, phys_addr_t align, |
156 | phys_addr_t max_addr); | 156 | phys_addr_t max_addr); |
157 | phys_addr_t memblock_phys_mem_size(void); | 157 | phys_addr_t memblock_phys_mem_size(void); |
158 | phys_addr_t memblock_mem_size(unsigned long limit_pfn); | ||
158 | phys_addr_t memblock_start_of_DRAM(void); | 159 | phys_addr_t memblock_start_of_DRAM(void); |
159 | phys_addr_t memblock_end_of_DRAM(void); | 160 | phys_addr_t memblock_end_of_DRAM(void); |
160 | void memblock_enforce_memory_limit(phys_addr_t memory_limit); | 161 | void memblock_enforce_memory_limit(phys_addr_t memory_limit); |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 66e2f7c61e5c..9d9dcc35d6a1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1386,7 +1386,6 @@ extern void __init mmap_init(void); | |||
1386 | extern void show_mem(unsigned int flags); | 1386 | extern void show_mem(unsigned int flags); |
1387 | extern void si_meminfo(struct sysinfo * val); | 1387 | extern void si_meminfo(struct sysinfo * val); |
1388 | extern void si_meminfo_node(struct sysinfo *val, int nid); | 1388 | extern void si_meminfo_node(struct sysinfo *val, int nid); |
1389 | extern int after_bootmem; | ||
1390 | 1389 | ||
1391 | extern __printf(3, 4) | 1390 | extern __printf(3, 4) |
1392 | void warn_alloc_failed(gfp_t gfp_mask, int order, const char *fmt, ...); | 1391 | void warn_alloc_failed(gfp_t gfp_mask, int order, const char *fmt, ...); |
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 071d62c214a6..2de42f9401d2 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h | |||
@@ -23,7 +23,7 @@ extern int swiotlb_force; | |||
23 | #define IO_TLB_SHIFT 11 | 23 | #define IO_TLB_SHIFT 11 |
24 | 24 | ||
25 | extern void swiotlb_init(int verbose); | 25 | extern void swiotlb_init(int verbose); |
26 | extern void swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose); | 26 | int swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose); |
27 | extern unsigned long swiotlb_nr_tbl(void); | 27 | extern unsigned long swiotlb_nr_tbl(void); |
28 | extern int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs); | 28 | extern int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs); |
29 | 29 | ||