You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[NETFILTER]: nf_conntrack: move extern declaration to header files
Using extern in a C file is a bad idea because the compiler can't catch type errors. Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
committed by
David S. Miller
parent
d734685334
commit
f8eb24a89a
@@ -28,7 +28,6 @@
|
||||
|
||||
LIST_HEAD(nf_conntrack_expect_list);
|
||||
kmem_cache_t *nf_conntrack_expect_cachep __read_mostly;
|
||||
DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat);
|
||||
static unsigned int nf_conntrack_expect_next_id;
|
||||
|
||||
/* nf_conntrack_expect helper functions */
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
#define DEBUGP(format, args...)
|
||||
#endif
|
||||
|
||||
DECLARE_PER_CPU(struct nf_conntrack_stat, nf_conntrack_stat);
|
||||
|
||||
static int generic_pkt_to_tuple(const struct sk_buff *skb, unsigned int nhoff,
|
||||
struct nf_conntrack_tuple *tuple)
|
||||
{
|
||||
|
||||
@@ -44,9 +44,6 @@
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
extern atomic_t nf_conntrack_count;
|
||||
DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
int
|
||||
print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
|
||||
@@ -334,10 +331,6 @@ int nf_conntrack_checksum __read_mostly = 1;
|
||||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
|
||||
/* From nf_conntrack_core.c */
|
||||
extern int nf_conntrack_max;
|
||||
extern unsigned int nf_conntrack_htable_size;
|
||||
|
||||
/* From nf_conntrack_proto_tcp.c */
|
||||
extern unsigned int nf_ct_tcp_timeout_syn_sent;
|
||||
extern unsigned int nf_ct_tcp_timeout_syn_recv;
|
||||
|
||||
Reference in New Issue
Block a user