Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / arch / s390 / boot / compressed / decompressor.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef BOOT_COMPRESSED_DECOMPRESSOR_H
3 #define BOOT_COMPRESSED_DECOMPRESSOR_H
4
5 #ifdef CONFIG_KERNEL_UNCOMPRESSED
6 static inline void *decompress_kernel(void) {}
7 #else
8 void *decompress_kernel(void);
9 #endif
10 unsigned long mem_safe_offset(void);
11 void error(char *m);
12
13 struct vmlinux_info {
14         unsigned long default_lma;
15         void (*entry)(void);
16         unsigned long image_size;       /* does not include .bss */
17         unsigned long bss_size;         /* uncompressed image .bss size */
18         unsigned long bootdata_off;
19         unsigned long bootdata_size;
20 };
21
22 extern char _vmlinux_info[];
23 #define vmlinux (*(struct vmlinux_info *)_vmlinux_info)
24
25 #endif /* BOOT_COMPRESSED_DECOMPRESSOR_H */