sched/core: make sched_domain_topology declaration static
PATCH 1/1 sched/core: make sched_domain_topology declaration static
sched_domain_topology is only used within kernel/sched/core.c. Make it static.
Signed-off-by Juergen Gross <[email protected]>
--- include/linux/sched.h | 2 -- kernel/sched/core.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-)
include/linux/sched.h +0 -2
@@ -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);
kernel/sched/core.c +2 -1
@@ -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++)
Signature · 1 line
2.1.4
tip-bot for Juergen Gross
merge bot[tip:sched/core] sched/core: Make 'sched_domain_topology' declaration static
sched/core: Make 'sched_domain_topology' declaration static
Commit-ID: c6e1e7b5b7f031910850ddaf7bfa65ba3b4843ea Gitweb: http://git.kernel.org/tip/c6e1e7b5b7f031910850ddaf7bfa65ba3b4843ea Author: Juergen Gross <[email protected]> AuthorDate: Tue, 22 Sep 2015 12:48:59 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 23 Sep 2015 10:19:12 +0200
sched/core: Make 'sched_domain_topology' declaration static
The 'sched_domain_topology' variable is only used within kernel/sched/core.c. Make it static.
Signed-off-by Juergen Gross <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- include/linux/sched.h | 2 -- kernel/sched/core.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-)
include/linux/sched.h +0 -2
@@ -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);
kernel/sched/core.c +2 -1
@@ -6445,7 +6445,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++)