Commit df39befb authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 initializer patches for four net/ files

parent 7af795fb
...@@ -49,20 +49,20 @@ ...@@ -49,20 +49,20 @@
* require us to fill additional fields. * require us to fill additional fields.
*/ */
static struct net_device __fake_net_device = { static struct net_device __fake_net_device = {
hard_header_len: ETH_HLEN .hard_header_len = ETH_HLEN
}; };
static struct rtable __fake_rtable = { static struct rtable __fake_rtable = {
u: { .u = {
dst: { .dst = {
__refcnt: ATOMIC_INIT(1), .__refcnt = ATOMIC_INIT(1),
dev: &__fake_net_device, .dev = &__fake_net_device,
path: &__fake_rtable.u.dst, .path = &__fake_rtable.u.dst,
metrics: {[RTAX_MTU] 1500}, .metrics = {[RTAX_MTU] = 1500},
} }
}, },
rt_flags: 0 .rt_flags = 0
}; };
......
...@@ -281,8 +281,8 @@ static int netlink_release(struct socket *sock) ...@@ -281,8 +281,8 @@ static int netlink_release(struct socket *sock)
skb_queue_purge(&sk->write_queue); skb_queue_purge(&sk->write_queue);
if (nlk->pid && !nlk->groups) { if (nlk->pid && !nlk->groups) {
struct netlink_notify n = { protocol:sk->protocol, struct netlink_notify n = { .protocol = sk->protocol,
pid:nlk->pid }; .pid = nlk->pid };
notifier_call_chain(&netlink_chain, NETLINK_URELEASE, &n); notifier_call_chain(&netlink_chain, NETLINK_URELEASE, &n);
} }
......
...@@ -39,7 +39,7 @@ static void __rxrpc_conn_timeout(rxrpc_timer_t *timer) ...@@ -39,7 +39,7 @@ static void __rxrpc_conn_timeout(rxrpc_timer_t *timer)
} }
static const struct rxrpc_timer_ops rxrpc_conn_timer_ops = { static const struct rxrpc_timer_ops rxrpc_conn_timer_ops = {
timed_out: __rxrpc_conn_timeout, .timed_out = __rxrpc_conn_timeout,
}; };
/*****************************************************************************/ /*****************************************************************************/
......
...@@ -383,22 +383,22 @@ static struct Qdisc_class_ops prio_class_ops = ...@@ -383,22 +383,22 @@ static struct Qdisc_class_ops prio_class_ops =
struct Qdisc_ops prio_qdisc_ops = struct Qdisc_ops prio_qdisc_ops =
{ {
next: NULL, .next = NULL,
cl_ops: &prio_class_ops, .cl_ops = &prio_class_ops,
id: "prio", .id = "prio",
priv_size: sizeof(struct prio_sched_data), .priv_size = sizeof(struct prio_sched_data),
enqueue: prio_enqueue, .enqueue = prio_enqueue,
dequeue: prio_dequeue, .dequeue = prio_dequeue,
requeue: prio_requeue, .requeue = prio_requeue,
drop: prio_drop, .drop = prio_drop,
init: prio_init, .init = prio_init,
reset: prio_reset, .reset = prio_reset,
destroy: prio_destroy, .destroy = prio_destroy,
change: prio_tune, .change = prio_tune,
dump: prio_dump, .dump = prio_dump,
}; };
#ifdef MODULE #ifdef MODULE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment