netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] make qdisc_class_hash_alloc() static
@ 2008-07-22 17:20 Adrian Bunk
  2008-07-22 17:31 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2008-07-22 17:20 UTC (permalink / raw)
  To: Patrick McHardy, David S. Miller; +Cc: netdev

This patch makes the needlessly global qdisc_class_hash_alloc() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
0fe6b0fa7332eaeeaacbfae2052dfd46e3ef66ab 
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 5219d5f..b060164 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -447,7 +447,7 @@ void qdisc_watchdog_cancel(struct qdisc_watchdog *wd)
 }
 EXPORT_SYMBOL(qdisc_watchdog_cancel);
 
-struct hlist_head *qdisc_class_hash_alloc(unsigned int n)
+static struct hlist_head *qdisc_class_hash_alloc(unsigned int n)
 {
 	unsigned int size = n * sizeof(struct hlist_head), i;
 	struct hlist_head *h;


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [2.6 patch] make qdisc_class_hash_alloc() static
  2008-07-22 17:20 [2.6 patch] make qdisc_class_hash_alloc() static Adrian Bunk
@ 2008-07-22 17:31 ` Patrick McHardy
  2008-07-22 21:20   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2008-07-22 17:31 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: David S. Miller, netdev

Adrian Bunk wrote:
> This patch makes the needlessly global qdisc_class_hash_alloc() static.

Ack, this is not supposed to be global.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.6 patch] make qdisc_class_hash_alloc() static
  2008-07-22 17:31 ` Patrick McHardy
@ 2008-07-22 21:20   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2008-07-22 21:20 UTC (permalink / raw)
  To: kaber; +Cc: bunk, netdev

From: Patrick McHardy <kaber@trash.net>
Date: Tue, 22 Jul 2008 19:31:27 +0200

> Adrian Bunk wrote:
> > This patch makes the needlessly global qdisc_class_hash_alloc() static.
> 
> Ack, this is not supposed to be global.

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-22 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 17:20 [2.6 patch] make qdisc_class_hash_alloc() static Adrian Bunk
2008-07-22 17:31 ` Patrick McHardy
2008-07-22 21:20   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).