Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756319Ab3D1CBM (ORCPT ); Sat, 27 Apr 2013 22:01:12 -0400 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:36488 "EHLO e23smtp03.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755352Ab3D1CBK (ORCPT ); Sat, 27 Apr 2013 22:01:10 -0400 Message-ID: <1367114462.6391.25.camel@ThinkPad-T5421.cn.ibm.com> Subject: Re: [PATCH] cpuset: fix compile warning when CONFIG_SMP=n From: Li Zhong To: Li Zefan Cc: Tejun Heo , LKML , Cgroups , Fengguang Wu Date: Sun, 28 Apr 2013 10:01:02 +0800 In-Reply-To: <517C7F91.2030705@huawei.com> References: <517C7F91.2030705@huawei.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13042801-6102-0000-0000-0000036561E4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1318 Lines: 47 On Sun, 2013-04-28 at 09:46 +0800, Li Zefan wrote: > Reported by Fengguang's kbuild test robot: Thank you for the quick fix, Zefan. Strong robot :) Thanks, Zhong > > 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 > Signed-off-by: Li Zefan > --- > kernel/cpuset.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/kernel/cpuset.c b/kernel/cpuset.c > index ef05901..2422c5b 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) -- 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/