]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kexec: silence -Warray-bounds warning
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 6 Apr 2022 12:06:27 +0000 (14:06 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Apr 2022 10:36:54 +0000 (12:36 +0200)
commitacb86de196efe45909572d4823b80824c5574c0c
treec44fbb0adc533883cf5ac9a48d557484c1cee857
parenta911ef0308017373622016857dbd687925ad9300
s390/kexec: silence -Warray-bounds warning

Just use absolute_pointer() like e.g. in commit a4582fc0c52b ("alpha:
Silence -Warray-bounds warnings") to get rid of this warning:

arch/s390/kernel/machine_kexec.c:59:9: warning: ‘memcpy’ offset [0, 511] is out of the bounds [0, 0] [-Warray-bounds]

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/machine_kexec.c