mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
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: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user