mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
sections: fix section conflicts in net
Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: David Miller <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6299b669b1
commit
04a6f82cf0
7 changed files with 8 additions and 6 deletions
|
@ -257,10 +257,12 @@ static inline struct net *read_pnet(struct net * const *pnet)
|
|||
#define __net_init
|
||||
#define __net_exit
|
||||
#define __net_initdata
|
||||
#define __net_initconst
|
||||
#else
|
||||
#define __net_init __init
|
||||
#define __net_exit __exit_refok
|
||||
#define __net_initdata __initdata
|
||||
#define __net_initconst __initconst
|
||||
#endif
|
||||
|
||||
struct pernet_operations {
|
||||
|
|
|
@ -220,7 +220,7 @@ static void dn_fib_rule_flush_cache(struct fib_rules_ops *ops)
|
|||
dn_rt_cache_flush(-1);
|
||||
}
|
||||
|
||||
static const struct fib_rules_ops __net_initdata dn_fib_rules_ops_template = {
|
||||
static const struct fib_rules_ops __net_initconst dn_fib_rules_ops_template = {
|
||||
.family = AF_DECnet,
|
||||
.rule_size = sizeof(struct dn_fib_rule),
|
||||
.addr_size = sizeof(u16),
|
||||
|
|
|
@ -262,7 +262,7 @@ static void fib4_rule_flush_cache(struct fib_rules_ops *ops)
|
|||
rt_cache_flush(ops->fro_net);
|
||||
}
|
||||
|
||||
static const struct fib_rules_ops __net_initdata fib4_rules_ops_template = {
|
||||
static const struct fib_rules_ops __net_initconst fib4_rules_ops_template = {
|
||||
.family = AF_INET,
|
||||
.rule_size = sizeof(struct fib4_rule),
|
||||
.addr_size = sizeof(u32),
|
||||
|
|
|
@ -221,7 +221,7 @@ static int ipmr_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct fib_rules_ops __net_initdata ipmr_rules_ops_template = {
|
||||
static const struct fib_rules_ops __net_initconst ipmr_rules_ops_template = {
|
||||
.family = RTNL_FAMILY_IPMR,
|
||||
.rule_size = sizeof(struct ipmr_rule),
|
||||
.addr_size = sizeof(u32),
|
||||
|
|
|
@ -79,7 +79,7 @@ struct net *ip6addrlbl_net(const struct ip6addrlbl_entry *lbl)
|
|||
|
||||
#define IPV6_ADDR_LABEL_DEFAULT 0xffffffffUL
|
||||
|
||||
static const __net_initdata struct ip6addrlbl_init_table
|
||||
static const __net_initconst struct ip6addrlbl_init_table
|
||||
{
|
||||
const struct in6_addr *prefix;
|
||||
int prefixlen;
|
||||
|
|
|
@ -238,7 +238,7 @@ static size_t fib6_rule_nlmsg_payload(struct fib_rule *rule)
|
|||
+ nla_total_size(16); /* src */
|
||||
}
|
||||
|
||||
static const struct fib_rules_ops __net_initdata fib6_rules_ops_template = {
|
||||
static const struct fib_rules_ops __net_initconst fib6_rules_ops_template = {
|
||||
.family = AF_INET6,
|
||||
.rule_size = sizeof(struct fib6_rule),
|
||||
.addr_size = sizeof(struct in6_addr),
|
||||
|
|
|
@ -205,7 +205,7 @@ static int ip6mr_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct fib_rules_ops __net_initdata ip6mr_rules_ops_template = {
|
||||
static const struct fib_rules_ops __net_initconst ip6mr_rules_ops_template = {
|
||||
.family = RTNL_FAMILY_IP6MR,
|
||||
.rule_size = sizeof(struct ip6mr_rule),
|
||||
.addr_size = sizeof(struct in6_addr),
|
||||
|
|
Loading…
Reference in a new issue