diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2021-07-25 15:07:25 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-07-27 09:39:22 +0200 |
commit | 6ab023641a34b18751310bbbeedb0e60aca2e4b2 (patch) | |
tree | 77c0c2ecb3a5b91810506656ada39d81fc323b75 /arch/s390/boot | |
parent | 243fdac5934f165254dabacdf7266b93567de46d (diff) | |
download | linux-6ab023641a34b18751310bbbeedb0e60aca2e4b2.tar.bz2 |
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>
Diffstat (limited to 'arch/s390/boot')
-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; |