From patchwork Tue Apr 7 01:46:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhiyong Wu X-Patchwork-Id: 16708 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n371kg9d002363 for ; Tue, 7 Apr 2009 01:46:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752514AbZDGBql (ORCPT ); Mon, 6 Apr 2009 21:46:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752600AbZDGBql (ORCPT ); Mon, 6 Apr 2009 21:46:41 -0400 Received: from wf-out-1314.google.com ([209.85.200.171]:42520 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752237AbZDGBqk (ORCPT ); Mon, 6 Apr 2009 21:46:40 -0400 Received: by wf-out-1314.google.com with SMTP id 29so2522163wff.4 for ; Mon, 06 Apr 2009 18:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=RWA5PP6xJfiG4mTrt8mCwm1qIryQSmcvYJ0bkKT6jbk=; b=Q3roUZtAqOT6TTTSOIftIhiQ1EMjIWpSTIJyF0uv3tcs+C/9B72xSQ+WD1j7985RFp qJ/J7VMkv2oqhWJ0ap72FCIWmWiZAoU6/G1CkoDAAKRhHHQ4Awh0pL7bG0CpDVdr7EnD DK8IR7JW13GQ3X3cfISBPS9xCXW2xfKuB1zu8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=XBQ/ES9ihmsw3woPzCN5mfGNeyKh9LLNm3Q10UvwMuA+AWjo+ziPcnwgCJ0axtyNJX 9ZaMJvU7phYMluCvaevqiGGoXoYwkI4iGYN7792Zcd34aBOC+osrNG5DJ596aXzemDn5 BN7RKqyMpY8vRX/OZphz5xw7ycdf11hEj0Sro= MIME-Version: 1.0 Received: by 10.142.192.1 with SMTP id p1mr1440575wff.316.1239068798607; Mon, 06 Apr 2009 18:46:38 -0700 (PDT) Date: Tue, 7 Apr 2009 09:46:38 +0800 Message-ID: Subject: Fix the warnings when compiling kvm user space on 2.6.29 From: Zhiyong Wu To: kvm@vger.kernel.org Cc: Avi Kivity , Herbert Xu , llim@redhat.com, zhaoyang@cn.ibm.com Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org HI, When compiling the lastest the code for kvm user space on 2.6.29 i386, the following warnings has appeared: test/x86/msr.c:10: warning: \u2018report\u2019 defined but not used test/x86/msr.c:18: warning: \u2018wrmsr\u2019 defined but not used test/x86/msr.c:23: warning: \u2018rdmsr\u2019 defined but not used [root@fedora9 kvm-userspace {master}]$ git describe kvm-84-488-gee8b55c Cheers Zhiyong Wu --- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/user/test/x86/msr.c b/user/test/x86/msr.c index 5010ad0..92102fa 100644 --- a/user/test/x86/msr.c +++ b/user/test/x86/msr.c @@ -6,6 +6,7 @@ int nr_passed, nr_tests; +#ifdef __x86_64__ static void report(const char *name, int passed) { ++nr_tests; @@ -27,6 +28,7 @@ static unsigned long long rdmsr(unsigned index) return value; } +#endif static void test_kernel_gs_base(void) {