aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-06-07 20:37:12 +0100
committerMark Brown <broonie@kernel.org>2022-06-07 20:37:12 +0100
commit073350da0aa2aead9df7927a1c1046ebf5cdd816 (patch)
treed1d5f86c817b24f245e218766505962cca3c5581 /include/linux/string.h
parentASoC: wm_adsp: Fix event generation for wm_adsp_fw_put() (diff)
parentLinux 5.19-rc1 (diff)
Merge tag 'v5.19-rc1' into asoc-5.19
Linux 5.19-rc1
Diffstat (limited to 'include/linux/string.h')
-rw-r--r--include/linux/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/string.h b/include/linux/string.h
index b6572aeca2f5..61ec7e4f6311 100644
--- a/include/linux/string.h
+++ b/include/linux/string.h
@@ -252,6 +252,10 @@ static inline const char *kbasename(const char *path)
#if !defined(__NO_FORTIFY) && defined(__OPTIMIZE__) && defined(CONFIG_FORTIFY_SOURCE)
#include <linux/fortify-string.h>
#endif
+#ifndef unsafe_memcpy
+#define unsafe_memcpy(dst, src, bytes, justification) \
+ memcpy(dst, src, bytes)
+#endif
void memcpy_and_pad(void *dest, size_t dest_len, const void *src, size_t count,
int pad);