Skip to content

Commit

Permalink
cpuset: fix compile warning when CONFIG_SMP=n
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Li Zefan <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
lizf-os authored and htejun committed Apr 28, 2013
1 parent 5b16c2a commit 2a0010a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,13 +789,6 @@ static void rebuild_sched_domains_locked(void)
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)
Expand Down

0 comments on commit 2a0010a

Please sign in to comment.