From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: linux-next: build failure after merge of the pm tree Date: Wed, 28 Sep 2011 21:32:46 +0200 Message-ID: <201109282132.46887.rjw@sisk.pl> References: <20110928145144.3d074db9aa9b6f858e0dc4fb@canb.auug.org.au> <201109281558.05289.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from ogre.sisk.pl ([217.79.144.158]:34500 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751947Ab1I1Tae (ORCPT ); Wed, 28 Sep 2011 15:30:34 -0400 In-Reply-To: Sender: linux-next-owner@vger.kernel.org List-ID: To: Ming Lei Cc: Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org On Wednesday, September 28, 2011, Ming Lei wrote: > Hi, > > 2011/9/28 Rafael J. Wysocki : > > On Wednesday, September 28, 2011, Ming Lei wrote: > >> Hi Stephen and Rafael, > >> > >> Sorry, the attachment patch can fix the build failure, which is > >> caused by unset CONFIG_RUNTIME_PM. > > > > First off, that's CONFIG_PM_RUNTIME. Second, why do you want to build > > rpm-traces.c at all if CONFIG_PM_RUNTIME is unset? > > > > Yes, you are right, follows the correct fix: > > diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile > index 56bdab5..f49405f 100644 > --- a/kernel/trace/Makefile > +++ b/kernel/trace/Makefile > @@ -53,7 +53,9 @@ endif > obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o > obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o > obj-$(CONFIG_TRACEPOINTS) += power-traces.o > +ifeq ($(CONFIG_PM_RUNTIME),y) > obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o > +endif > ifeq ($(CONFIG_TRACING),y) > obj-$(CONFIG_KGDB_KDB) += trace_kdb.o > endif Well, this still is kind of ugly. I'd prefer my patch sent in this thread. Rafael