summaryrefslogtreecommitdiff
path: root/arch/s390/boot/boot.h
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2023-03-31 16:03:22 +0300
committerVasily Gorbik <gor@linux.ibm.com>2023-04-13 18:36:25 +0300
commitbb87190c9d46c4285696e071d5972a534bb107cc (patch)
tree0e260e3dbbc87443854a8eadd665db921db8f516 /arch/s390/boot/boot.h
parent11018ef90ce73d9de8ac6e565c00cc8631b46328 (diff)
downloadlinux-bb87190c9d46c4285696e071d5972a534bb107cc.tar.xz
s390/kaslr: provide kaslr_enabled() function
Just like other architectures provide a kaslr_enabled() function, instead of directly accessing a global variable. Also pass the renamed __kaslr_enabled variable from the decompressor to the kernel, so that kalsr_enabled() is available there too. This will be used by a subsequent patch which randomizes the module base load address. Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/boot.h')
-rw-r--r--arch/s390/boot/boot.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/boot/boot.h b/arch/s390/boot/boot.h
index 872963c8a0ab..5baa855c21cb 100644
--- a/arch/s390/boot/boot.h
+++ b/arch/s390/boot/boot.h
@@ -79,7 +79,6 @@ 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 _decompressor_syms_start[], _decompressor_syms_end[];