Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp568169ybv; Thu, 13 Feb 2020 05:50:45 -0800 (PST) X-Google-Smtp-Source: APXvYqx4Vcue1yHwN3As4y05I3N4dUHO37r0I+4zYJth7xacPewS6yp1RnkwRgjOxMMULxb44lk4 X-Received: by 2002:a9d:6a85:: with SMTP id l5mr14073987otq.231.1581601845208; Thu, 13 Feb 2020 05:50:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581601845; cv=none; d=google.com; s=arc-20160816; b=ysmPqEgqG6YYEo8uK3Wa28BQ9Huv5dcolJxpHW4ez+Z/BzUTQKJdmnSsZvxBKUSFwV CtfApvMw/1WRigkiW6AG+bAnrBLEnB4n60K1YBy9nrAEST1D7v28sQt/8Y+8Y0vJ6WQs Vz44Gq4SuBxKQTXrylA4GSosd4hkz4piwfB1yOXY1h3/SpjRxoSsv7OodNi28UowZRa5 1v8B+1Szo3Rk+dInosjlDvCGMcGN6Gf8hXXMqDf1aJp9N/8hzzubUkiLqXDWsq2zRs+s LnjN+/W5Fu5jo3VdCNVu9RpnMRnjIfwpHNK21nJzD0rAZwxdcoa02WjiyT7vjYFX2YTF +UGQ== 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:mime-version :date:cc:to:from:subject:message-id:dkim-signature; bh=hYWzdyVfx8Qtyuo6FsSKCev9Wngp3vI5dQBFQPr+z38=; b=Qgxw1hlWKC8P0Mza3dm/HcpMw4ac8jgGgkMEU/GvtLYS3vYev7EoNj/P+kSNGbPrO5 06Es/RjuKREQl9ATRtGbuNbrpTYnnLLX9dV6C0pHW6JevqfM4UHUPtwVvST4e7gMSrn6 WBPkZpb113uUmFn+V+7ekm8mr7AAeBukvoFA+yoFpDmWyahtLKzAtUMxUzh3+/u6MnkL MywaJIPKJsXs7UXe9kqr5ZWD0mq+qnXoLhYvk6DIuq4RETVPM9+4OMd5nbxc23o6Q0EH 2lQ89LkhDfSCshj+WzeXruqgPPCKK74Og2crGsNwgOd9irs8gnHAwtwjsYrJAbQWeGxq UJAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=asQduntX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si1037966otl.138.2020.02.13.05.50.32; Thu, 13 Feb 2020 05:50:45 -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=@lca.pw header.s=google header.b=asQduntX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730122AbgBMNuH (ORCPT + 99 others); Thu, 13 Feb 2020 08:50:07 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]:36766 "EHLO mail-qt1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730003AbgBMNuH (ORCPT ); Thu, 13 Feb 2020 08:50:07 -0500 Received: by mail-qt1-f172.google.com with SMTP id t13so4399960qto.3 for ; Thu, 13 Feb 2020 05:50:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=hYWzdyVfx8Qtyuo6FsSKCev9Wngp3vI5dQBFQPr+z38=; b=asQduntXxoDqj4rpCaoGvHOQ1wkbE2AIP+WmNjqJd4jJ98NSHc6WIIqySVY11MhBmc HiFoySnWDJCxGHwvHEM9glItkO9hpTzcFtUckVvstoeeSNOAqdHXoXrg3zz00XXxdOjM Y5lTj22qEBaKgI2eyn4DhbDnhs2dwiB9Z2aiYqv5GWtqDVXn7aszCbsYAR0AGus8FuVo qQjEc87hgGcZYHnqmfOI/c+pfSsXTLkG0iRDvDqmccu2soP5bnV0VlNytNIQUpLvuerO k4oKTneOg6Arr1DH2cceGUoO0HzMRStdSMUfpve35PAuhJhH6EZHqU4aKC8Gf0jzcQPR GUSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=hYWzdyVfx8Qtyuo6FsSKCev9Wngp3vI5dQBFQPr+z38=; b=N8HyBAaxxaPecQhCnp2jDe4C2AQ2HYYSmUJmwt7YWgDtiGfimNQ9JyTiBaqu/liz9y YmQQW37+7XU4deTTw1XMyQeXfXzAGG0v9VSw7JoWsAtWLbJ5DW1ttuu3yuoRk9Oh8ZCl 5hmo7ojt3lg7kC0ZkJ+rNP7Iq0ZPV6EVIGRApOcLOljNU4g+P7GF8nIkDI4joiN6pJY/ 9OhXxx5Z8B0fZEUuEtSH2lckM6JPWJRCHmwgUaL5xT6o1wQ5KYidAvt5vSyUks33sZAS NDe5glcdNtmHlzhUd+GSDfoGqjo8Bz4WEZVDLOdDHMSxzEFKcaiK/n9uwx2Zq5IbRTf8 2KQg== X-Gm-Message-State: APjAAAVbwBCjmfnoBgYazcn8fWvKYJSBnWcXzn6hgAolG+s6JOqa8iYl NiV0uHeldBxhnDl6i8Z8kmObww== X-Received: by 2002:ac8:1a19:: with SMTP id v25mr24196508qtj.146.1581601805810; Thu, 13 Feb 2020 05:50:05 -0800 (PST) Received: from dhcp-41-57.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id c14sm1327859qkj.80.2020.02.13.05.50.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2020 05:50:05 -0800 (PST) Message-ID: <1581601803.7365.57.camel@lca.pw> Subject: "KVM: x86: enable -Werror" breaks W=1 compilation From: Qian Cai To: Paolo Bonzini Cc: joe@perches.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 13 Feb 2020 08:50:03 -0500 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)