Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp783431ybv; Thu, 13 Feb 2020 09:25:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyxNCkAjfNIWvGSVA90D3XzCQySchGajczOFra2K13cXj+s4V1U5QLWUgVmdqLt9HK/O2d/ X-Received: by 2002:a05:6830:1304:: with SMTP id p4mr14367139otq.327.1581614749263; Thu, 13 Feb 2020 09:25:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581614749; cv=none; d=google.com; s=arc-20160816; b=E/pn5H+NzKJcxy3U9QVhdjC6eRCirX3QHJMKW9w5LuJhbdenDy7xG+BNMzplfB7dEO VOvIh+buT/SPSMRWDnSH6ZPfaJvca/lytp1PVuHbA7DRzSomCxvVTZn2HfGk0nkgi7Pb i0M1eelfz2u3zImiRX6tSsDmSaxYT3N/vQSs9ErHz/Aom7Rii5hQqbYZtfI407cGPJF9 Rc3mRxXoK3bwth1o3IiFECZl817aoHE//J9NB2zadXHVgmc5+0EWeO0mwp6l7wY5QKum joTsrvwX96M/DkC4zMcT9co2pV1BjGtggOXWdhnwe1WdRgcFXBwc9fMqwe1dcR/JLtod c97A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=wMnTmMYnUeKTqStdF/IUayq9A998cBCRdlJrS4A6/Q0=; b=wZVJUpI4SsUAxghkA8pVXkjjpMIgX8D57u87cAtfisAZzSZB3lUvCS0sRXb9VHsoyK 91V9SXCtNl/WZ33iMvbol0TZgKJygaHcS/Z1EKPoaiAglA0LChPOEYK1cKd2peDgTbKW V0yq5vTvBSCYv9p0fYluXafLSX0cWImjsoY/ctzOLcUIdj07iA6e/wIxM0xA+34MMoWX IMckLsABFBoPs8o3Pd8IG+S0l7CJjPM4m3x4VZZ7WAsMQRj2us8tHtXDuDsjqe06Snzf WP0IAUsomjNRWrUiLj0kVlZWjwDo0bEN0s9tTJ+LfFzJwjCUW04+7cmWeciPuLL6qikK O5/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UiTlu+5u; 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=pass (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 n7si1329194otk.277.2020.02.13.09.25.35; Thu, 13 Feb 2020 09:25:49 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UiTlu+5u; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728734AbgBMRYB (ORCPT + 99 others); Thu, 13 Feb 2020 12:24:01 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:57316 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728701AbgBMRYB (ORCPT ); Thu, 13 Feb 2020 12:24:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581614640; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wMnTmMYnUeKTqStdF/IUayq9A998cBCRdlJrS4A6/Q0=; b=UiTlu+5uVhgG4pZuxGBiJHWD89Ew06s+qQrbBEW3kc3HFukPeo3ho2RMlwcd8lyJDWkdZM vit+A/PGJ7uzX5+uhfdZ1CjVZtDtX2DY2FUkSXxfemVHVUCAxn7KH8h3Gj/IMURRQ9/nuf 43TlLMMQA6wnvj1VjpylLA3ayFfgwy8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-12-RW8dFjeKMDaZu1sEd-4vLg-1; Thu, 13 Feb 2020 12:23:58 -0500 X-MC-Unique: RW8dFjeKMDaZu1sEd-4vLg-1 Received: by mail-wr1-f71.google.com with SMTP id d8so2614771wrq.12 for ; Thu, 13 Feb 2020 09:23:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wMnTmMYnUeKTqStdF/IUayq9A998cBCRdlJrS4A6/Q0=; b=JOI0vy23bs3Twyi2cGb2hOSFfbVDPlq3i81R3/2z4gmzpVgoxWvRklogME21V5JO6T aNuFQOneI+PRlRAEkjzxIAcTdjRMZ8XNGWuxNkX8KZEv9QcN04I6T2JVYN2eKmr8VmxO QWXpe/llN5bqRDDNJGJizb+/iGN6W/dblskTUMFb0KhGM9ZTJPdCcT+xGE5hjlHG2z9x rqWAJmRXwXZwOooKzPTISj8q08f9Q0/XQCPFP12dHiEWmgF7wBtSOHc1VSigEL4sD44V yoEURkKZcrXYFDST6vxkv1zoy5u0pCXnmJBIUR77Pq8MhflyrCUZeGKcExufCZvJdeco a5Ww== X-Gm-Message-State: APjAAAWhS8syVLebSadtr/7oClfEcsYHsmtAhv01o7Zb3zmaQqWukbC6 9O0p+xS0OGwx3nYUGc5AkTcZVROqqoN3bQFSv5rtAiXB7wEQ8lJ9dnDOH2bp2ymRq/tF4CCZRRw FngJAQ+5YrXoFIiRuRKQ6AWyX X-Received: by 2002:a7b:c3d1:: with SMTP id t17mr6785661wmj.27.1581614637321; Thu, 13 Feb 2020 09:23:57 -0800 (PST) X-Received: by 2002:a7b:c3d1:: with SMTP id t17mr6785636wmj.27.1581614637011; Thu, 13 Feb 2020 09:23:57 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:48f0:7b10:ad88:6d83? ([2001:b07:6468:f312:48f0:7b10:ad88:6d83]) by smtp.gmail.com with ESMTPSA id 5sm3738471wrc.75.2020.02.13.09.23.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Feb 2020 09:23:56 -0800 (PST) Subject: Re: "KVM: x86: enable -Werror" breaks W=1 compilation To: Qian Cai Cc: joe@perches.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1581601803.7365.57.camel@lca.pw> From: Paolo Bonzini Message-ID: Date: Thu, 13 Feb 2020 18:23:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <1581601803.7365.57.camel@lca.pw> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/02/20 14:50, Qian Cai wrote: > People have been running W=1 to catch additional compilation warnings with an > expectation that not all of warnings will be fixed, but the linux-next commit > ead68df94d24 ("KVM: x86: enable -Werror") breaks the build for them. > > arch/x86/kvm/../../../virt/kvm/kvm_main.c:663:12: error: no previous prototype > for ‘kvm_arch_post_init_vm’ [-Werror=missing-prototypes] >  int __weak kvm_arch_post_init_vm(struct kvm *kvm) >             ^~~~~~~~~~~~~~~~~~~~~ > arch/x86/kvm/../../../virt/kvm/kvm_main.c:672:13: error: no previous prototype > for ‘kvm_arch_pre_destroy_vm’ [-Werror=missing-prototypes] >  void __weak kvm_arch_pre_destroy_vm(struct kvm *kvm) Thanks, we already found two bugs, one of them real (it's from -Wtype-limits). But I'll leave out this commit for now from the pull request, of course. Paolo