summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/suspend_64.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-02-02 15:59:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-08 13:05:05 +0100
commit21761c7034366a1b4d02685ccd6b57141a14aa65 (patch)
tree7c5ee6bbe248594db5384fa3c07971e77db98b01 /arch/x86/include/asm/suspend_64.h
parente9490d7a727b3a9234c55f6aee8f0d6d1ac8b8dd (diff)
kdb: use memmove instead of overlapping memcpy
commit 2cf2f0d5b91fd1b06a6ae260462fc7945ea84add upstream. gcc discovered that the memcpy() arguments in kdbnearsym() overlap, so we should really use memmove(), which is defined to handle that correctly: In function 'memcpy', inlined from 'kdbnearsym' at /git/arm-soc/kernel/debug/kdb/kdb_support.c:132:4: /git/arm-soc/include/linux/string.h:353:9: error: '__builtin_memcpy' accessing 792 bytes at offsets 0 and 8 overlaps 784 bytes at offset 8 [-Werror=restrict] return __builtin_memcpy(p, q, size); Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include/asm/suspend_64.h')
0 files changed, 0 insertions, 0 deletions