diff options
author | Michal Simek <michal.simek@xilinx.com> | 2022-02-25 14:55:36 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2022-04-21 10:54:21 +0200 |
commit | 61a4e653cabd7d9e4a9e940d0786532725e73c0d (patch) | |
tree | 9dda516e5e50cd3cd10b789f954574b82b7649b7 /arch/microblaze/include | |
parent | microblaze: Do loop unrolling for optimized memset implementation (diff) | |
download | linux-61a4e653cabd7d9e4a9e940d0786532725e73c0d.tar.xz linux-61a4e653cabd7d9e4a9e940d0786532725e73c0d.zip |
microblaze: Use simple memmove/memcpy implementation from lib/string.c
This is based on previous commit ("microblaze: Use simple memset
implementation from lib/string.c") where generic memset implementation is
used when OPT_LIB_FUNCTION is not defined. The same change can be done for
memset/memcpy implementation where doesn't make sense to have generic
implementation in architecture code.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/1f5cfc026a8a458f3e3134ab80f65bd4ac7e3e8e.1645797329.git.michal.simek@xilinx.com
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/string.h b/arch/microblaze/include/asm/string.h index dbdb9eb4a733..8798ad2c132a 100644 --- a/arch/microblaze/include/asm/string.h +++ b/arch/microblaze/include/asm/string.h @@ -10,13 +10,13 @@ #ifdef CONFIG_OPT_LIB_FUNCTION #define __HAVE_ARCH_MEMSET -#endif #define __HAVE_ARCH_MEMCPY #define __HAVE_ARCH_MEMMOVE extern void *memset(void *, int, __kernel_size_t); extern void *memcpy(void *, const void *, __kernel_size_t); extern void *memmove(void *, const void *, __kernel_size_t); +#endif #endif /* __KERNEL__ */ |