aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kexec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kexec.h')
-rw-r--r--include/linux/kexec.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 5e320ddaaa82..437ef1b47428 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -163,7 +163,7 @@ struct kexec_file_ops {
163 */ 163 */
164struct kexec_buf { 164struct kexec_buf {
165 struct kimage *image; 165 struct kimage *image;
166 char *buffer; 166 void *buffer;
167 unsigned long bufsz; 167 unsigned long bufsz;
168 unsigned long mem; 168 unsigned long mem;
169 unsigned long memsz; 169 unsigned long memsz;
@@ -175,6 +175,7 @@ struct kexec_buf {
175 175
176int __weak arch_kexec_walk_mem(struct kexec_buf *kbuf, 176int __weak arch_kexec_walk_mem(struct kexec_buf *kbuf,
177 int (*func)(u64, u64, void *)); 177 int (*func)(u64, u64, void *));
178extern int kexec_add_buffer(struct kexec_buf *kbuf);
178#endif /* CONFIG_KEXEC_FILE */ 179#endif /* CONFIG_KEXEC_FILE */
179 180
180struct kimage { 181struct kimage {
@@ -239,11 +240,6 @@ extern asmlinkage long sys_kexec_load(unsigned long entry,
239 struct kexec_segment __user *segments, 240 struct kexec_segment __user *segments,
240 unsigned long flags); 241 unsigned long flags);
241extern int kernel_kexec(void); 242extern int kernel_kexec(void);
242extern int kexec_add_buffer(struct kimage *image, char *buffer,
243 unsigned long bufsz, unsigned long memsz,
244 unsigned long buf_align, unsigned long buf_min,
245 unsigned long buf_max, bool top_down,
246 unsigned long *load_addr);
247extern struct page *kimage_alloc_control_pages(struct kimage *image, 243extern struct page *kimage_alloc_control_pages(struct kimage *image,
248 unsigned int order); 244 unsigned int order);
249extern int kexec_load_purgatory(struct kimage *image, unsigned long min, 245extern int kexec_load_purgatory(struct kimage *image, unsigned long min,