summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2022-11-07 22:03:36 +0100
committerJozsef Kadlecsik <kadlec@netfilter.org>2022-11-07 22:03:36 +0100
commitb8dcfd9c68e55c523b54928d3351b353f3fb25e7 (patch)
tree697384cdc0282b5ef29167d22c5c2f4510391973
parent67e1c031e8bae91764ecd100538753c3dabdedb0 (diff)
compatibility: handle unsafe_memcpy()
-rw-r--r--kernel/include/linux/netfilter/ipset/ip_set_compat.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in
index 6a4b071..7d3f536 100644
--- a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in
+++ b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in
@@ -605,5 +605,11 @@ static inline void *kvzalloc(size_t size, gfp_t flags)
return members;
}
#endif
+
+#ifndef unsafe_memcpy
+#define unsafe_memcpy(dst, src, bytes, justification) \
+ memcpy(dst, src, bytes)
+#endif
+
#endif /* IP_SET_COMPAT_HEADERS */
#endif /* __IP_SET_COMPAT_H */