Commit 6ab02364 authored by Heiko Carstens's avatar Heiko Carstens

s390/boot: get rid of arithmetics on function pointers

sparse warning:
  CHECK   arch/s390/boot/startup.c
arch/s390/boot/startup.c:283:39: error: arithmetics on pointers to functions
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 243fdac5
......@@ -280,7 +280,7 @@ void startup_kernel(void)
__kaslr_offset = random_lma - vmlinux.default_lma;
img = (void *)vmlinux.default_lma;
vmlinux.default_lma += __kaslr_offset;
vmlinux.entry += __kaslr_offset;
*(unsigned long *)(&vmlinux.entry) += __kaslr_offset;
vmlinux.bootdata_off += __kaslr_offset;
vmlinux.bootdata_preserved_off += __kaslr_offset;
vmlinux.rela_dyn_start += __kaslr_offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment