summaryrefslogtreecommitdiffstats
path: root/kernel/cpuset.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-04-28 03:46:57 +0200
committerTejun Heo <tj@kernel.org>2013-04-28 04:55:04 +0200
commit2a0010af17b1739ef8ea8cf02647a127241ee674 (patch)
treeaa96feb5df61f15c1814874ce44c69371b1570e9 /kernel/cpuset.c
parentcpuset: fix cpu hotplug vs rebuild_sched_domains() race (diff)
downloadlinux-2a0010af17b1739ef8ea8cf02647a127241ee674.tar.xz
linux-2a0010af17b1739ef8ea8cf02647a127241ee674.zip
cpuset: fix compile warning when CONFIG_SMP=n
Reported by Fengguang's kbuild test robot: kernel/cpuset.c:787: warning: 'generate_sched_domains' defined but not used Introduced by commit e0e80a02e5701c8790bd348ab59edb154fbda60b ("cpuset: use rebuild_sched_domains() in cpuset_hotplug_workfn()), which removed generate_sched_domains() from cpuset_hotplug_workfn(). Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r--kernel/cpuset.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 93d140f159cc..9bd30b9c430c 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -789,13 +789,6 @@ out:
static void rebuild_sched_domains_locked(void)
{
}
-
-static int generate_sched_domains(cpumask_var_t **domains,
- struct sched_domain_attr **attributes)
-{
- *domains = NULL;
- return 1;
-}
#endif /* CONFIG_SMP */
void rebuild_sched_domains(void)