Skip to content

Commit

Permalink
[NETFILTER]: nf_conntrack: mark helpers __read_mostly
Browse files Browse the repository at this point in the history
Most are __read_mostly already, this changes the remaining ones.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jul 11, 2007
1 parent b8a7fe6 commit ec59a11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions net/netfilter/nf_conntrack_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ static int help(struct sk_buff **pskb,
return ret;
}

static struct nf_conntrack_helper ftp[MAX_PORTS][2];
static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")];
static struct nf_conntrack_helper ftp[MAX_PORTS][2] __read_mostly;
static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")] __read_mostly;

/* don't make this __exit, since it's called from __init ! */
static void nf_conntrack_ftp_fini(void)
Expand Down
4 changes: 2 additions & 2 deletions net/netfilter/nf_conntrack_sane.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ static int help(struct sk_buff **pskb,
return ret;
}

static struct nf_conntrack_helper sane[MAX_PORTS][2];
static char sane_names[MAX_PORTS][2][sizeof("sane-65535")];
static struct nf_conntrack_helper sane[MAX_PORTS][2] __read_mostly;
static char sane_names[MAX_PORTS][2][sizeof("sane-65535")] __read_mostly;

/* don't make this __exit, since it's called from __init ! */
static void nf_conntrack_sane_fini(void)
Expand Down

0 comments on commit ec59a11

Please sign in to comment.