Skip to content

Commit 2a0010a

Browse files
lizf-oshtejun
authored andcommitted
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 e0e80a0 ("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>
1 parent 5b16c2a commit 2a0010a

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎kernel/cpuset.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -789,13 +789,6 @@ static void rebuild_sched_domains_locked(void)
789789
static void rebuild_sched_domains_locked(void)
790790
{
791791
}
792-
793-
static int generate_sched_domains(cpumask_var_t **domains,
794-
struct sched_domain_attr **attributes)
795-
{
796-
*domains = NULL;
797-
return 1;
798-
}
799792
#endif /* CONFIG_SMP */
800793

801794
void rebuild_sched_domains(void)

0 commit comments

Comments
 (0)