net_sched: sch_plug: plug_qdisc_ops is static
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 13 Feb 2012 05:40:45 +0000 (05:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2012 21:04:40 +0000 (16:04 -0500)
net/sched/sch_plug.c:211:18: warning: symbol 'plug_qdisc_ops' was not
declared. Should it be static?

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_plug.c

index ba7b737e40551d140c01217f946358b2022d706c..89f8fcf73f18f6e091881cc829861285c0c8f8b7 100644 (file)
@@ -208,7 +208,7 @@ static int plug_change(struct Qdisc *sch, struct nlattr *opt)
        return 0;
 }
 
-struct Qdisc_ops plug_qdisc_ops = {
+static struct Qdisc_ops plug_qdisc_ops __read_mostly = {
        .id          =       "plug",
        .priv_size   =       sizeof(struct plug_sched_data),
        .enqueue     =       plug_enqueue,