diff options
| author | 2021-07-25 15:07:25 +0200 | |
|---|---|---|
| committer | 2021-07-27 09:39:22 +0200 | |
| commit | 6ab023641a34b18751310bbbeedb0e60aca2e4b2 (patch) | |
| tree | 77c0c2ecb3a5b91810506656ada39d81fc323b75 | |
| parent | s390/headers: fix code style in module.h (diff) | |
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>
| -rw-r--r-- | arch/s390/boot/startup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c index 80c9ac71dea3..6188be11de57 100644 --- a/arch/s390/boot/startup.c +++ b/arch/s390/boot/startup.c @@ -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; |
