projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[INET]: Consolidate the xxx_evictor
[firefly-linux-kernel-4.4.55.git]
/
net
/
ipv6
/
ip6_fib.c
diff --git
a/net/ipv6/ip6_fib.c
b/net/ipv6/ip6_fib.c
index 662a7d9681fdb03b4c2a9c089ec4dffdcfb2f4d2..946cf389ab95716a27a98fda7ca448b99524993c 100644
(file)
--- a/
net/ipv6/ip6_fib.c
+++ b/
net/ipv6/ip6_fib.c
@@
-1313,7
+1313,7
@@
static int fib6_clean_node(struct fib6_walker_t *w)
{
int res;
struct rt6_info *rt;
{
int res;
struct rt6_info *rt;
- struct fib6_cleaner_t *c =
(struct fib6_cleaner_t*)w
;
+ struct fib6_cleaner_t *c =
container_of(w, struct fib6_cleaner_t, w)
;
for (rt = w->leaf; rt; rt = rt->u.dst.rt6_next) {
res = c->func(rt, c->arg);
for (rt = w->leaf; rt; rt = rt->u.dst.rt6_next) {
res = c->func(rt, c->arg);
@@
-1474,7
+1474,7
@@
void __init fib6_init(void)
fib6_node_kmem = kmem_cache_create("fib6_nodes",
sizeof(struct fib6_node),
0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
fib6_node_kmem = kmem_cache_create("fib6_nodes",
sizeof(struct fib6_node),
0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
- NULL
, NULL
);
+ NULL);
fib6_tables_init();
fib6_tables_init();