From 8bd2debcb473edb6b1550e9b510838456a7fd0f3 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Fri, 17 Apr 2015 20:39:34 +0200 Subject: Fix coding styles reported by the most recent checkpatch.pl. --- kernel/include/linux/netfilter/ipset/ip_set_compat.h.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel/include/linux/netfilter') 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 a0a7436..5938d8f 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in +++ b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in @@ -42,6 +42,7 @@ #@HAVE_TCF_EMATCH_STRUCT_NET@ HAVE_TCF_EMATCH_STRUCT_NET #@HAVE_LIST_LAST_ENTRY@ HAVE_LIST_LAST_ENTRY #@HAVE_LIST_NEXT_ENTRY@ HAVE_LIST_NEXT_ENTRY +#@HAVE_ETHER_ADDR_COPY@ HAVE_ETHER_ADDR_COPY /* Not everything could be moved here. Compatibility stuffs can be found in * xt_set.c, ip_set_core.c, ip_set_getport.c, pfxlen.c too. @@ -204,6 +205,10 @@ static inline int nla_put_net32(struct sk_buff *skb, int attrtype, __be32 value) list_entry((pos)->member.prev, typeof(*(pos)), member) #endif +#ifndef HAVE_ETHER_ADDR_COPY +#define ether_addr_copy(dst, src) memcpy(dst, src, ETH_ALEN) +#endif + #ifndef smp_mb__before_atomic #define smp_mb__before_atomic() smp_mb() #define smp_mb__after_atomic() smp_mb() -- cgit v1.2.3