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 @@
* require us to fill additional fields.
*/
static struct net_device __fake_net_device = {
hard_header_len: ETH_HLEN
.hard_header_len = ETH_HLEN
};
static struct rtable __fake_rtable = {
u: {
dst: {
__refcnt: ATOMIC_INIT(1),
dev: &__fake_net_device,
path: &__fake_rtable.u.dst,
metrics: {[RTAX_MTU] 1500},
.u = {
.dst = {
.__refcnt = ATOMIC_INIT(1),
.dev = &__fake_net_device,
.path = &__fake_rtable.u.dst,
.metrics = {[RTAX_MTU] = 1500},
}
},
rt_flags: 0
.rt_flags = 0
};
......
......@@ -281,8 +281,8 @@ static int netlink_release(struct socket *sock)
skb_queue_purge(&sk->write_queue);
if (nlk->pid && !nlk->groups) {
struct netlink_notify n = { protocol:sk->protocol,
pid:nlk->pid };
struct netlink_notify n = { .protocol = sk->protocol,
.pid = nlk->pid };
notifier_call_chain(&netlink_chain, NETLINK_URELEASE, &n);
}
......
......@@ -39,7 +39,7 @@ static void __rxrpc_conn_timeout(rxrpc_timer_t *timer)
}
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 =
struct Qdisc_ops prio_qdisc_ops =
{
next: NULL,
cl_ops: &prio_class_ops,
id: "prio",
priv_size: sizeof(struct prio_sched_data),
enqueue: prio_enqueue,
dequeue: prio_dequeue,
requeue: prio_requeue,
drop: prio_drop,
init: prio_init,
reset: prio_reset,
destroy: prio_destroy,
change: prio_tune,
dump: prio_dump,
.next = NULL,
.cl_ops = &prio_class_ops,
.id = "prio",
.priv_size = sizeof(struct prio_sched_data),
.enqueue = prio_enqueue,
.dequeue = prio_dequeue,
.requeue = prio_requeue,
.drop = prio_drop,
.init = prio_init,
.reset = prio_reset,
.destroy = prio_destroy,
.change = prio_tune,
.dump = prio_dump,
};
#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