Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp427175yba; Fri, 5 Apr 2019 09:22:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqygbgldnlwnbNmES64q64iW7eBRU0AX02ZN4VlySRo5MqmaAHC6j7q1jFk7LGTNU8LPcdr0 X-Received: by 2002:aa7:9193:: with SMTP id x19mr13712938pfa.108.1554481326562; Fri, 05 Apr 2019 09:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554481326; cv=none; d=google.com; s=arc-20160816; b=GNeBLBaqM+zF+MCkR3mE0TNVuRFtce/xYqhryCsrh0MM6XjcUEZErTJXUBr4hQvS2Y vnUTMD/fKhf9iJ965ymR4OIN9P36a6CuCSVlfZ3UNkZkbh71hAmF973jxER8j939OiTy wCxt9rI+V8QcmJlk4kFKg3+8xHzK6GjPYMvEoTWdwHP87tP/QO1ILAK3EZyVWG2suCU4 3gurgoRViDoDRngNiNSI+TQpuJPxRgAsJfIgTKKLfof237xTlBtUxTfcOmQLyWRTX9la vCQ3z2T3P4lUn0Zb3EYW+wUULLent1kqrkMrAHNatoV32vhEYXwamjqgBXgFRPsr+cqO bk1A== 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=l1thcc4LEvZQazZDiRCRg5MIXBrith6GbEfgqjDsyW8=; b=mrQTQn35nAmmauhLnAmDyk8nkPz7BmztVqM9ZBtKU1qqXNlURtGTp0hL0XRIBB8+oB vxF11SF/z1HeyHatCpWRXLvU+/oK0Ui9gsBP8Wxk2iSBzq4upsV0gnT63aCwqwA192nF E24BvzB1nRJbh8KMwLk9opDCV6WRpe3lYv9wMt+p/U+B7nG07+Eb/DluGnYPVMKkoKbD 8O8+oTqQf4nrxDZsOT/os0uSQ0aK5EqHWwr7nEsT0bHM7fDGclxHzzyumEp43oOocmdj 7kzu4I+2cjgu3UKygRbjx55iqmqqODCw5IsxDAutlj0TuRj4347mDQzbrA261HV7dDLE RjqA== 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 3si19021548pfh.36.2019.04.05.09.21.51; Fri, 05 Apr 2019 09:22:06 -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 S1731263AbfDEQVN (ORCPT + 99 others); Fri, 5 Apr 2019 12:21:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46634 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbfDEQVN (ORCPT ); Fri, 5 Apr 2019 12:21:13 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8690F3060498; Fri, 5 Apr 2019 16:21:13 +0000 (UTC) Received: from treble (ovpn-123-87.rdu2.redhat.com [10.10.123.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 830FB26546; Fri, 5 Apr 2019 16:21:11 +0000 (UTC) Date: Fri, 5 Apr 2019 11:21:09 -0500 From: Josh Poimboeuf To: David Laight Cc: 'Luis Ressel' , Peter Zijlstra , open list , "stable@vger.kernel.org" Subject: Re: [PATCH] objtool: Don't use -Werror Message-ID: <20190405162109.4hv6lqpd6manzjju@treble> References: <20190405110151.2461-1-aranea@aixah.de> <20190405123909.tupbgueie4czg2dd@treble> <20190405142443.rgpwbgyym76xizad@vega.skynet.aixah.de> <20190405143926.wmrkjsazlheeg6qs@treble> <20190405160550.62arkmvj67zm6oc2@vega.skynet.aixah.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Fri, 05 Apr 2019 16:21:13 +0000 (UTC) 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 04:16:14PM +0000, David Laight wrote: > From: Luis Ressel > > Sent: 05 April 2019 17:06 > > 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.) > > In which case you should be looking at a way of removing -Wundef > not removing -Werror. Agreed. > FWIW I had to update libelf.so from version 0.153 to 0.165 in > order for the amd64 orc unwinder code in objtool to not generate > corrupt output files. > That is an Ubuntu 13.04 system - nothing like 10 years old. Ah. It would be great if we had a patch to fail the build for old versions of elfutils-libelf as well. -- Josh