summaryrefslogtreecommitdiff
path: root/arch/s390/boot/boot.h
diff options
context:
space:
mode:
authorAlexander Egorenkov <egorenar@linux.ibm.com>2021-06-30 18:12:25 +0300
committerHeiko Carstens <hca@linux.ibm.com>2021-07-27 10:39:12 +0300
commit7fadcc078785416b1e2423fc624e054bb5a6e3b0 (patch)
treebb6875d49338e7201535c68c54896644867b8b9b /arch/s390/boot/boot.h
parentff1176468d368232b684f75e82563369208bc371 (diff)
downloadlinux-7fadcc078785416b1e2423fc624e054bb5a6e3b0.tar.xz
s390/boot: move all linker symbol declarations from c to h files
To prevent multiple incompatible declarations of symbols and to catch such mistakes at compile time. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Acked-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/boot.h')
-rw-r--r--arch/s390/boot/boot.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/s390/boot/boot.h b/arch/s390/boot/boot.h
index ae04e1c93764..937dbdd0ef43 100644
--- a/arch/s390/boot/boot.h
+++ b/arch/s390/boot/boot.h
@@ -8,7 +8,7 @@
#ifndef __ASSEMBLY__
-#include <linux/compiler.h>
+#include <asm/extable.h>
void startup_kernel(void);
unsigned long detect_memory(void);
@@ -22,11 +22,19 @@ void print_pgm_check_info(void);
unsigned long get_random_base(unsigned long safe_addr);
void __printf(1, 2) decompressor_printk(const char *fmt, ...);
+/* Symbols defined by linker scripts */
extern const char kernel_version[];
extern unsigned long memory_limit;
extern unsigned long vmalloc_size;
extern int vmalloc_size_set;
extern int kaslr_enabled;
+extern char __boot_data_start[], __boot_data_end[];
+extern char __boot_data_preserved_start[], __boot_data_preserved_end[];
+extern char _sdma[], _edma[];
+extern char _stext_dma[], _etext_dma[];
+extern struct exception_table_entry _start_dma_ex_table[];
+extern struct exception_table_entry _stop_dma_ex_table[];
+extern char _decompressor_syms_start[], _decompressor_syms_end[];
unsigned long read_ipl_report(unsigned long safe_offset);