Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1230078

[PATCH] sched/core: make sched_domain_topology declaration static

From Juergen Gross <jgross@suse.com>
Newsgroups linux.kernel
Subject [PATCH] sched/core: make sched_domain_topology declaration static
Date 2015-09-22 13:00 +0200
Message-ID <qbtsK-37w-27@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


sched_domain_topology is only used within kernel/sched/core.c. Make it
static.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 include/linux/sched.h | 2 --
 kernel/sched/core.c   | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index a4ab9da..32eb32a 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1127,8 +1127,6 @@ struct sched_domain_topology_level {
 #endif
 };
 
-extern struct sched_domain_topology_level *sched_domain_topology;
-
 extern void set_sched_topology(struct sched_domain_topology_level *tl);
 extern void wake_up_if_idle(int cpu);
 
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 2f9c928..188858d 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6461,7 +6461,8 @@ static struct sched_domain_topology_level default_topology[] = {
 	{ NULL, },
 };
 
-struct sched_domain_topology_level *sched_domain_topology = default_topology;
+static struct sched_domain_topology_level *sched_domain_topology =
+	default_topology;
 
 #define for_each_sd_topology(tl)			\
 	for (tl = sched_domain_topology; tl->mask; tl++)
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] sched/core: make sched_domain_topology declaration static Juergen Gross <jgross@suse.com> - 2015-09-22 13:00 +0200
  [tip:sched/core] sched/core: Make 'sched_domain_topology'   declaration static tip-bot for Juergen Gross <tipbot@zytor.com> - 2015-09-23 11:00 +0200

csiph-web