Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1510813ybm; Thu, 23 May 2019 02:13:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyZYF3wWb5/xvdsg5dtt7tFoN9CEyntlo69YVHJJoMo4xBnwifJXJy6F1fOHlJLWQglqwK X-Received: by 2002:a17:90a:730b:: with SMTP id m11mr276564pjk.89.1558602792999; Thu, 23 May 2019 02:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558602792; cv=none; d=google.com; s=arc-20160816; b=GSgX/6sFo36oa/y89uVXtHTfsUszMz8bBRJ4X9WUbB6rUTjszpRvEVuuUxQZPKTYal p1PR0M+zYF6YvNhaJYRiVRvh/OCLD/01frA1DUhu5fImTOxSH9KWaR8KgpY9bidCzeHN C59YYT4oHY8EUt2uzO+UtfxhKq0Up3PGg8Oo1joPoIJhi9zATs+Lotp8h1epnQq47o3c wdpTFGqCLJt08d8dM8egrPNQ+fyV89XIZ/PP6rFiPEY71nXKHA9wEmfXVisF33SZ7NkE dwMeRF3nhCCWLK3DgiwCyNhaKnl8o7LtkxwcCuwbW76mHyZ6DxqnXF4oDDpTENgnScmV bhdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=c5L56PrQUztUXUd1PGfMtpZGMQ2DRCHopUgQ3HDF0zI=; b=tXidq/wsyr49lR7gWDb9Bn/o/Qse+sAUakWZa7g2h7L3vu9XIWJoV/XuI93jAd2o6Q YaXIo3O9azT69ArP8rj8BDiRPz0ZkDi9g7BWhcm7Hf8lg1ndzVqhiu50CNlz8lTco8rV jrnTDOgYCIyMzzwl/XTyewzJFnRbV8y+fDuyBY7tkwOlJFg1bDbCIx3ApKzIxfZxidrN V/xUE0GFsXlMddU1Lz+lctKFnMQILEbqtahwpd06j4v9b4NaoOdvCQRsnijwxq91PwSX LoDwCFnQrq1el2AQ7LyqWQbKdZYYdr1u8zERvn+bF0iiatWeL8u4oJ9l5ood7Zhu1qtx 83Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si2562550plt.288.2019.05.23.02.12.58; Thu, 23 May 2019 02:13:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729962AbfEWJLk (ORCPT + 99 others); Thu, 23 May 2019 05:11:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55044 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbfEWJLk (ORCPT ); Thu, 23 May 2019 05:11:40 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7B9F03086229; Thu, 23 May 2019 09:11:39 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.43.2.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9EA255B681; Thu, 23 May 2019 09:11:35 +0000 (UTC) Date: Thu, 23 May 2019 11:11:33 +0200 From: Andrew Jones To: Paolo Bonzini Cc: Thomas Huth , Radim =?utf-8?B?S3LEjW3DocWZ?= , linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, Shuah Khan , Peter Xu , Vitaly Kuznetsov , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] KVM: selftests: Compile code with warnings enabled Message-ID: <20190523091133.wemwsmz6xslsz3va@kamzik.brq.redhat.com> References: <20190517090445.4502-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 23 May 2019 09:11:39 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 20, 2019 at 12:03:08PM +0200, Paolo Bonzini wrote: > On 17/05/19 11:04, Thomas Huth wrote: > > So far the KVM selftests are compiled without any compiler warnings > > enabled. That's quite bad, since we miss a lot of possible bugs this > > way. Let's enable at least "-Wall" and some other useful warning flags > > now, and fix at least the trivial problems in the code (like unused > > variables). > > > > Signed-off-by: Thomas Huth > > --- > > v2: > > - Rebased to kvm/queue > > - Fix warnings in state_test.c and evmcs_test.c, too > > > > tools/testing/selftests/kvm/Makefile | 4 +++- > > tools/testing/selftests/kvm/dirty_log_test.c | 6 +++++- > > tools/testing/selftests/kvm/lib/kvm_util.c | 3 --- > > tools/testing/selftests/kvm/lib/x86_64/processor.c | 4 +--- > > tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test.c | 1 + > > tools/testing/selftests/kvm/x86_64/evmcs_test.c | 7 +------ > > tools/testing/selftests/kvm/x86_64/platform_info_test.c | 1 - > > tools/testing/selftests/kvm/x86_64/smm_test.c | 3 +-- > > tools/testing/selftests/kvm/x86_64/state_test.c | 7 +------ > > .../selftests/kvm/x86_64/vmx_close_while_nested_test.c | 5 +---- > > tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c | 5 ++--- > > 11 files changed, 16 insertions(+), 30 deletions(-) > > Queued, with a squashed fix to kvm_get_supported_hv_cpuid. > I've done the fixups needed to keep aarch64 compiling and will send the patch shortly. drew