Skip to contentSkip to conversation

hhf: make qdisc ops static

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 26, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hhf: make qdisc ops static

This module shouldn't be randomly exporting symbols

---
 net/sched/sch_hhf.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
net/sched/sch_hhf.c +1 -2
@@ -711,7 +711,7 @@ static int hhf_dump_stats(struct Qdisc *
 	return gnet_stats_copy_app(d, &st, sizeof(st));
 }
 
-struct Qdisc_ops hhf_qdisc_ops __read_mostly = {
+static struct Qdisc_ops hhf_qdisc_ops __read_mostly = {
 	.id		=	"hhf",
 	.priv_size	=	sizeof(struct hhf_sched_data),
 
@@ -727,7 +727,6 @@ struct Qdisc_ops hhf_qdisc_ops __read_mo
 	.dump_stats	=	hhf_dump_stats,
 	.owner		=	THIS_MODULE,
 };
-EXPORT_SYMBOL(hhf_qdisc_ops);
 
 static int __init hhf_module_init(void)
 {