diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-02-02 15:59:40 +0100 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2018-02-05 04:29:53 +0100 |
commit | 2cf2f0d5b91fd1b06a6ae260462fc7945ea84add (patch) | |
tree | c1fdfd0cd8967578b8e19ecc11ed3d7037f5e757 /kernel/time/timekeeping_internal.h | |
parent | kdb: use ktime_get_mono_fast_ns() instead of ktime_get_ts() (diff) | |
download | linux-2cf2f0d5b91fd1b06a6ae260462fc7945ea84add.tar.xz linux-2cf2f0d5b91fd1b06a6ae260462fc7945ea84add.zip |
kdb: use memmove instead of overlapping memcpy
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>
Diffstat (limited to 'kernel/time/timekeeping_internal.h')
0 files changed, 0 insertions, 0 deletions