diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-11-07 22:03:36 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-11-07 22:03:36 +0100 |
commit | b8dcfd9c68e55c523b54928d3351b353f3fb25e7 (patch) | |
tree | 697384cdc0282b5ef29167d22c5c2f4510391973 | |
parent | 67e1c031e8bae91764ecd100538753c3dabdedb0 (diff) |
compatibility: handle unsafe_memcpy()
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_compat.h.in | 6 |
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 */ |