Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1342760yba; Thu, 16 May 2019 19:47:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/61rSBY+X7x3RvOQk4k5UHtQQJXN3QF2gvTm+53cXQy6wMaVlFPMsQM3xLpZPN/3eYfgQ X-Received: by 2002:a63:f410:: with SMTP id g16mr23033591pgi.428.1558061270212; Thu, 16 May 2019 19:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558061270; cv=none; d=google.com; s=arc-20160816; b=Y/AqD7rFTFqwIb5hp+RXRY5xzrCluG/pbzuv3o6r9G2Ad/5LOBlEhAcdU4m0refiER t1RdsnUJnQuIodWtBHpnArseDNKJVNp8na8R3Dr44bxyVpp0wD0xv4XVKFiy89DHaCcC bLHjQJdFaigQzxA319CUui4E8nhtWh8qFcudhoMP0Qm976VKC2En1o17mTZyuWeW7yoa iFJlZVBaQYG1YrkxdVUzaNi3MIwpgzJo3kLKRBkPb+rNg8Sn2EUQT50ja1iLFDWgFEme inoHLLbqv9HFS30I4JEug0JooBGDMstx7KPHY4g6dHrmUgQ5bUIipbzy/zV0jmrU0jhf QQvQ== 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=bdaB9DvqD0RyOZgdxB7fk7THkoGnEJR14ty+UNShg88=; b=uVMMi7aS2T0UcmAwznyYYc3QEgiCCZXSrEDTtC9nvPEuOPTAT2S+ywhmaPMbkr3vQd OhEElpnXZtuzAvxTA7+nw/8r7oxxl5HP294DHKx7ChKn0cuRFxGwyItTksh/fCsdJquG wL0w0CgdfUPvqIa/+I2GX+9Vfxg/YkiVTjUE+1J/sxyqm86gfDyv+U5qOB4saznrDpkC nuvvh2QXCfo1th56/uVPLwGOyHf57LkMh4W8/6lktZt6WtxhfiLNDuk4mhvk6uGwfCDU uAmM/+vAZ/R9f36tBgzqVjfVg7+Qdw47STFDT2guHOzBusXIs9+NEacGiXHGLHNALvo3 5C/w== 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 j15si7036583pgs.43.2019.05.16.19.47.34; Thu, 16 May 2019 19:47:50 -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 S1727561AbfEQCpQ (ORCPT + 99 others); Thu, 16 May 2019 22:45:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60736 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfEQCpP (ORCPT ); Thu, 16 May 2019 22:45:15 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 962F936883; Fri, 17 May 2019 02:45:15 +0000 (UTC) Received: from xz-x1 (dhcp-15-205.nay.redhat.com [10.66.15.205]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ACD8960A9D; Fri, 17 May 2019 02:45:12 +0000 (UTC) Date: Fri, 17 May 2019 10:45:10 +0800 From: Peter Xu To: Thomas Huth Cc: Radim =?utf-8?B?S3LEjW3DocWZ?= , Paolo Bonzini , linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, Shuah Khan , Andrew Jones , Vitaly Kuznetsov , linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM: selftests: Compile code with warnings enabled Message-ID: <20190517024510.GN16681@xz-x1> References: <20190516130257.29445-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190516130257.29445-1-thuth@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 17 May 2019 02:45:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thomas, On Thu, May 16, 2019 at 03:02:57PM +0200, 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. > > Signed-off-by: Thomas Huth > --- > This patch fixes most of the warnings in the x86 code already - but > for some warnings, I was not quite sure (e.g. about the need for the > kvm_get_supported_cpuid_entry(1) in some tests), so I did not touch If you mean the two calls in state_test and evmcs_test I would agree they should be dropped directly. Just to mention that the patch may not apply cleanly to kvm/queue now probably because the dirty-log-test.c touchup recently, so may need a rebase. Otherwise it looks nice at least to me to have these checks. Thanks, -- Peter Xu