Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp413320yba; Fri, 5 Apr 2019 09:06:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrA9ZsVyOowWQ4Z1AyOio1nZZ2L+LN/1Kb2ha4KiwRmop/4PlQ+9VoXqydGklQ174Sjduz X-Received: by 2002:aa7:8212:: with SMTP id k18mr13335980pfi.50.1554480419093; Fri, 05 Apr 2019 09:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554480419; cv=none; d=google.com; s=arc-20160816; b=vQRhNXbeIueTZRNCFKGNToG8RCyXMwDewN4e3Exf8IqRevgCDtyWrdSFW1xC3E0hTw HBfHmYRp/zSkIosyo9B8ujPdSCvWUgt/sdD0w3l77MIvQxPOwf6by9XUz9q3AuWG5VcJ WKvWROfGCMMgscDsDe/S4FZstDK1kpD6cKL6CUiAs+biHBZLzM+D4Jg3Pyd+aE3IkX3/ G2gR9OOyp6a79toWkEgEFlLN1HZhnh+Zg76Wf88zkADsOVh9LXbnXQ+wwzg246PB4fu4 CV1ycEihDG8QkQLIqXOTA1wPXukgPTeziE41Et8pG78YRFd7fmLPXBlp53gL48aSFWZH M8bg== 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=XHiypKcXfv1lBXxDo7absETl3+VXSCYy0sUMSgHU/LM=; b=kTyGYztIZGPK8aenNNM7UHeia4CGOux9dRmENtsNxbJpw8mHpyYJIwKZ64/JSSHlAP Gy6JybxJ8ZYvPpqB0A1xU0qlE2Q4Ma20Puu8q2eLFxUhykyJ2sql7Y0n8Zn+bv/ymasv 5OXQ5PRzEZjhnYHz5sQCv02Ee6+ovX7YnW1rWvC1sLq8uBSgKME71IuyIal3kixLZnuD fcw2Zuo3XHdEBMzaelG+ViuX3yiS+Auo7Je9COjmhNNErianYLdxT+v37cMAChFgHXU1 DJfNvdr7TSpvm6CjS1acuGBXXXusoATMnuyzTigFnjKNmJuJh8CzenAnJmKcUElmt0DE 2gxA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 134si19864873pga.249.2019.04.05.09.06.44; Fri, 05 Apr 2019 09:06:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731501AbfDEQFy (ORCPT + 99 others); Fri, 5 Apr 2019 12:05:54 -0400 Received: from wp260.webpack.hosteurope.de ([80.237.133.29]:45278 "EHLO wp260.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbfDEQFy (ORCPT ); Fri, 5 Apr 2019 12:05:54 -0400 Received: from hsi-kbw-46-223-87-231.hsi.kabel-badenwuerttemberg.de ([46.223.87.231] helo=vega.skynet.aixah.de); authenticated by wp260.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1hCRLj-0002n4-EF; Fri, 05 Apr 2019 18:05:51 +0200 Received: by vega.skynet.aixah.de (Postfix, from userid 1005) id E67E4E5352; Fri, 5 Apr 2019 18:05:50 +0200 (CEST) Date: Fri, 5 Apr 2019 18:05:50 +0200 From: Luis Ressel To: Josh Poimboeuf Cc: Peter Zijlstra , open list , stable@vger.kernel.org Subject: Re: [PATCH] objtool: Don't use -Werror Message-ID: <20190405160550.62arkmvj67zm6oc2@vega.skynet.aixah.de> References: <20190405110151.2461-1-aranea@aixah.de> <20190405123909.tupbgueie4czg2dd@treble> <20190405142443.rgpwbgyym76xizad@vega.skynet.aixah.de> <20190405143926.wmrkjsazlheeg6qs@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190405143926.wmrkjsazlheeg6qs@treble> User-Agent: NeoMutt/20180716 X-bounce-key: webpack.hosteurope.de;aranea@aixah.de;1554480353;b6aa34e8; X-HE-SMSGID: 1hCRLj-0002n4-EF Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 05, 2019 at 09:39:26AM -0500, Josh Poimboeuf wrote: > Hm, I would actually argue the reverse. Warnings are generally bad and > -Werror is useful for ensuring that we don't have any. For warnings > that don't provide value, we just disable those individual warnings. Sure, during development it's an excellent idea to investigate compiler warnings, and -Werror can be useful for that. But the Linux kernel is built by countless users in wildly varying environments, and it's almost a given that someone will use a compiler that'll complain about a valid part of your code whose style it considers bad. As an example, the warning that's breaking the build for me is -Wundef complaining about several "#if UNDEFINED_IDENTIFIER" constructs in the libelf headers. (I agree with gcc in considering this bad style, but it's perfectly valid C, and there probably wasn't a warning about it back when this header was written.) Regards, Luis