With memcpy() expanding to the compiler builtin, we may not hand it
overlapping source and destination. We strictly mean to forward to our
own implementation (a few lines up in the same source file).
Fixes: 78825e1c60fa ("x86/string: Clean up x86/string.h")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
return dest;
if ( dest < src )
- return memcpy(dest, src, n);
+ /* Depends on Xen's implementation operating forwards. */
+ return (memcpy)(dest, src, n);
asm volatile (
" std ; "