netfilter: fix coding-style errors.
Several header-files, Kconfig files and Makefiles have trailing white-space. Remove it. In netfilter/Kconfig, indent the type of CONFIG_NETFILTER_NETLINK_ACCT correctly. There are semicolons at the end of two function definitions in include/net/netfilter/nf_conntrack_acct.h and include/net/netfilter/nf_conntrack_ecache.h. Remove them. Fix indentation in nf_conntrack_l4proto.h. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:

committed by
Pablo Neira Ayuso

parent
0286fbc624
commit
b0edba2af7
@@ -45,7 +45,7 @@ struct nf_conn_acct *nf_ct_acct_ext_add(struct nf_conn *ct, gfp_t gfp)
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
/* Check if connection tracking accounting is enabled */
|
||||
static inline bool nf_ct_acct_enabled(struct net *net)
|
||||
|
@@ -61,7 +61,7 @@ nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp)
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
||||
/* This structure is passed to event handler */
|
||||
|
@@ -126,7 +126,7 @@ void nf_ct_expect_init(struct nf_conntrack_expect *, unsigned int, u_int8_t,
|
||||
const union nf_inet_addr *,
|
||||
u_int8_t, const __be16 *, const __be16 *);
|
||||
void nf_ct_expect_put(struct nf_conntrack_expect *exp);
|
||||
int nf_ct_expect_related_report(struct nf_conntrack_expect *expect,
|
||||
int nf_ct_expect_related_report(struct nf_conntrack_expect *expect,
|
||||
u32 portid, int report, unsigned int flags);
|
||||
static inline int nf_ct_expect_related(struct nf_conntrack_expect *expect,
|
||||
unsigned int flags)
|
||||
|
@@ -181,41 +181,41 @@ void nf_ct_l4proto_log_invalid(const struct sk_buff *skb,
|
||||
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
|
||||
static inline struct nf_generic_net *nf_generic_pernet(struct net *net)
|
||||
{
|
||||
return &net->ct.nf_ct_proto.generic;
|
||||
return &net->ct.nf_ct_proto.generic;
|
||||
}
|
||||
|
||||
static inline struct nf_tcp_net *nf_tcp_pernet(struct net *net)
|
||||
{
|
||||
return &net->ct.nf_ct_proto.tcp;
|
||||
return &net->ct.nf_ct_proto.tcp;
|
||||
}
|
||||
|
||||
static inline struct nf_udp_net *nf_udp_pernet(struct net *net)
|
||||
{
|
||||
return &net->ct.nf_ct_proto.udp;
|
||||
return &net->ct.nf_ct_proto.udp;
|
||||
}
|
||||
|
||||
static inline struct nf_icmp_net *nf_icmp_pernet(struct net *net)
|
||||
{
|
||||
return &net->ct.nf_ct_proto.icmp;
|
||||
return &net->ct.nf_ct_proto.icmp;
|
||||
}
|
||||
|
||||
static inline struct nf_icmp_net *nf_icmpv6_pernet(struct net *net)
|
||||
{
|
||||
return &net->ct.nf_ct_proto.icmpv6;
|
||||
return &net->ct.nf_ct_proto.icmpv6;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NF_CT_PROTO_DCCP
|
||||
static inline struct nf_dccp_net *nf_dccp_pernet(struct net *net)
|
||||
{
|
||||
return &net->ct.nf_ct_proto.dccp;
|
||||
return &net->ct.nf_ct_proto.dccp;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NF_CT_PROTO_SCTP
|
||||
static inline struct nf_sctp_net *nf_sctp_pernet(struct net *net)
|
||||
{
|
||||
return &net->ct.nf_ct_proto.sctp;
|
||||
return &net->ct.nf_ct_proto.sctp;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -124,7 +124,7 @@ struct nf_conntrack_tuple_hash {
|
||||
#if IS_ENABLED(CONFIG_NETFILTER)
|
||||
static inline bool __nf_ct_tuple_src_equal(const struct nf_conntrack_tuple *t1,
|
||||
const struct nf_conntrack_tuple *t2)
|
||||
{
|
||||
{
|
||||
return (nf_inet_addr_cmp(&t1->src.u3, &t2->src.u3) &&
|
||||
t1->src.u.all == t2->src.u.all &&
|
||||
t1->src.l3num == t2->src.l3num);
|
||||
|
Reference in New Issue
Block a user