From: Jozsef Kadlecsik Date: Mon, 7 Nov 2022 21:03:36 +0000 (+0100) Subject: compatibility: handle unsafe_memcpy() X-Git-Tag: v7.16~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8dcfd9c68e55c523b54928d3351b353f3fb25e7;p=thirdparty%2Fipset.git compatibility: handle unsafe_memcpy() --- 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 6a4b071d..7d3f5363 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 */