From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgloZ-0001Tu-Ub for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:11:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgloY-0001Rn-9d for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:11:06 -0400 Received: from [199.232.76.173] (port=57322 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgloX-0001RK-PB for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:11:06 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2719) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LgloX-0007IH-IZ for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:11:05 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lgc72-0002Z4-3G for qemu-devel@nongnu.org; Mon, 09 Mar 2009 05:49:32 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n299gGq9026236 for ; Mon, 9 Mar 2009 05:42:16 -0400 Message-ID: <49B4E477.9070606@redhat.com> Date: Mon, 09 Mar 2009 11:42:15 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [6684] Fix "info registers" under kvm. References: <49B3EAA8.6050900@web.de> <49B3EFDC.8050205@redhat.com> <49B3F0F5.8020202@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Blue Swirl wrote: >> static inline void kvm_foo(...) >> { >> if (!kvm_enabled()) { >> return; >> } >> >> #ifdef CONFIG_KVM >> kvm_do_foo(); >> #endif >> >> } >> > > kvm_foo may then be unused and produce warnings unless also hidden > with #ifdef CONFIG_KVM. > static inlines don't produce unused warnings. -- error compiling committee.c: too many arguments to function