From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM make error--drivers/usb/serial/usb_wwan.c Date: Wed, 23 Mar 2011 11:02:21 +0200 Message-ID: <4D89B71D.5030900@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" To: "Ren, Yongjie" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:29401 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755974Ab1CWJCe (ORCPT ); Wed, 23 Mar 2011 05:02:34 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 03/23/2011 04:41 AM, Ren, Yongjie wrote: > Hi folks, > Kvm.git: commit 2ee44a580db58f98d85b57bfc468bbc5729ec9b3 Author: Avi Kivity Date: Mon Mar 21 12:53:58 2011 +0200 > My build system: RHEL5u5, Linux kvm-build 2.6.38-rc4+ #1 SMP Sat Feb 19 15:35:09 CST 2011 x86_64 x86_64 x86_64 GNU/Linux > > When I make kvm, I get the following error. > drivers/usb/serial/usb_wwan.c: In function 'play_delayed': > drivers/usb/serial/usb_wwan.c:702: error: 'struct dev_pm_info' has no member named 'usage_count' > > And I look at the 702Row of usb_wwan.c It shows: > atomic_dec(&port->serial->interface->dev.power.usage_count); > I see usage_count is declared in kvm.git/include/linux/pm.h , but it is declared between "#ifdef" and "#endif". #ifdef CONFIG_PM_RUNTIME . > Kernel of build system doesn't define CONFIG_PM_RUNTIME, so I got the kvm make error. > > Anybody knows the solution ? Thanks. > I suggest simply disabling this driver. A simple way is 'make localmodconfig' which disables all drivers not currently in use (and makes for a much faster build as well). The problem will likely go away on the next merge from linux-2.6.git. -- error compiling committee.c: too many arguments to function