Skip to content

Commit 9ecdafd

Browse files
author
Jan Engelhardt
committed
netfilter: xtables: remove unused defines
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
1 parent 75f0a0f commit 9ecdafd

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

‎include/linux/netfilter_arp/arp_tables.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ extern unsigned int arpt_do_table(struct sk_buff *skb,
255255
const struct net_device *out,
256256
struct xt_table *table);
257257

258-
#define ARPT_ALIGN(s) XT_ALIGN(s)
259-
260258
#ifdef CONFIG_COMPAT
261259
#include <net/compat.h>
262260

@@ -275,8 +273,6 @@ compat_arpt_get_target(struct compat_arpt_entry *e)
275273
return (void *)e + e->target_offset;
276274
}
277275

278-
#define COMPAT_ARPT_ALIGN(s) COMPAT_XT_ALIGN(s)
279-
280276
#endif /* CONFIG_COMPAT */
281277
#endif /*__KERNEL__*/
282278
#endif /* _ARPTABLES_H */

‎include/linux/netfilter_ipv4/ip_tables.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,6 @@ extern unsigned int ipt_do_table(struct sk_buff *skb,
282282
const struct net_device *out,
283283
struct xt_table *table);
284284

285-
#define IPT_ALIGN(s) XT_ALIGN(s)
286-
287285
#ifdef CONFIG_COMPAT
288286
#include <net/compat.h>
289287

@@ -304,8 +302,6 @@ compat_ipt_get_target(struct compat_ipt_entry *e)
304302
return (void *)e + e->target_offset;
305303
}
306304

307-
#define COMPAT_IPT_ALIGN(s) COMPAT_XT_ALIGN(s)
308-
309305
#endif /* CONFIG_COMPAT */
310306
#endif /*__KERNEL__*/
311307
#endif /* _IPTABLES_H */

‎include/linux/netfilter_ipv6/ip6_tables.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@ extern int ip6t_ext_hdr(u8 nexthdr);
292292
extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
293293
int target, unsigned short *fragoff);
294294

295-
#define IP6T_ALIGN(s) XT_ALIGN(s)
296-
297295
#ifdef CONFIG_COMPAT
298296
#include <net/compat.h>
299297

@@ -313,8 +311,6 @@ compat_ip6t_get_target(struct compat_ip6t_entry *e)
313311
return (void *)e + e->target_offset;
314312
}
315313

316-
#define COMPAT_IP6T_ALIGN(s) COMPAT_XT_ALIGN(s)
317-
318314
#endif /* CONFIG_COMPAT */
319315
#endif /*__KERNEL__*/
320316
#endif /* _IP6_TABLES_H */

0 commit comments

Comments
 (0)