Skip to content

Commit 711136b

Browse files
committed
s390/kexec: silence -Warray-bounds warning
Just use absolute_pointer() like e.g. in commit 545c272 ("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>
1 parent e69a7ff commit 711136b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/kernel/machine_kexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void __do_machine_kdump(void *image)
5454
* This need to be done *after* s390_reset_system set the
5555
* prefix register of this CPU to zero
5656
*/
57-
memcpy((void *) __LC_FPREGS_SAVE_AREA,
57+
memcpy(absolute_pointer(__LC_FPREGS_SAVE_AREA),
5858
(void *)(prefix + __LC_FPREGS_SAVE_AREA), 512);
5959

6060
__load_psw_mask(PSW_MASK_BASE | PSW_DEFAULT_KEY | PSW_MASK_EA | PSW_MASK_BA);

0 commit comments

Comments
 (0)