diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-12-19 02:48:32 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-12-19 03:05:59 +0100 |
commit | 7e476b3d15ae050137906a9e572d255e66c05d62 (patch) | |
tree | a44dbd3ae9460fbe5666bc23f120f6b4e94e7130 /kernel/ip_set.c | |
parent | 8f88de56d8ab22e6b34dba81ebf69e75929706ff (diff) |
kernel: use __read_mostly for registration-type structures
Here is where __read_mostly goes :-)
Diffstat (limited to 'kernel/ip_set.c')
-rw-r--r-- | kernel/ip_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/ip_set.c b/kernel/ip_set.c index 19a0571..038a70e 100644 --- a/kernel/ip_set.c +++ b/kernel/ip_set.c @@ -1692,7 +1692,7 @@ static const struct nfnl_callback ip_set_netlink_subsys_cb[IPSET_MSG_MAX] = { }, }; -static struct nfnetlink_subsystem ip_set_netlink_subsys = { +static struct nfnetlink_subsystem ip_set_netlink_subsys __read_mostly = { .name = "ip_set", .subsys_id = NFNL_SUBSYS_IPSET, .cb_count = IPSET_MSG_MAX, @@ -1791,7 +1791,7 @@ done: return ret; } -static struct nf_sockopt_ops so_set = { +static struct nf_sockopt_ops so_set __read_mostly = { .pf = PF_INET, .get_optmin = SO_IP_SET, .get_optmax = SO_IP_SET + 1, |