Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp423199yba; Fri, 5 Apr 2019 09:17:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzruFSN2g8V2o4li7HEXxkmYFW65QU7R/kU4bTYq20uteDeFlNqQEkrO1iqcvSdOuRkNxGh X-Received: by 2002:a17:902:599d:: with SMTP id p29mr13983594pli.156.1554481043089; Fri, 05 Apr 2019 09:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554481043; cv=none; d=google.com; s=arc-20160816; b=ixdhT3LoLVYiApLlU44gUECZXpmNqvn/S+M8B9LojTGZTaqs56NCKo8MYLaaM3MbuV DbucVorQShp9AygD5QqfWlDL99aCo/Ur6E7Keap31aEjAu/LihPQMjG5IrI5M/klEmce 2hQR+p5KUegf8t2yjK0NpZXBrNodudZwYlFAep5iuzDllXe6EC8vgZCj/xvPuMZlZ4eQ HuqztbKQ2tPf86xB/KkoVhUWSEIfeZPTVjGah/FDTh+l9F2qE9tqXOw6PuXx6CtiT8qj l662xaNSOa9jL8KwPWzQ9UuaI0MCvK58EPU4bwqWbOgLAlnNnu/g2GYOyTdomGOQF343 aipA== 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=IELeNEXMqLmH/7ab0cqnoJyRod37OszISx/Pol8kqWk=; b=M73MuMeWE1Jq7yospPohzW6vwyfHLeN7Howc/8L271a7KXcoq4h8yjSnuJLIZaqsDf KGzNw1jBOnjr1Hw1nOmmkZcX/PbsaxWC4YQtFhJYhrW0y0LsEZCvF2CsX02mBWZVH7Wo NdO5eSZdGAoe3adlNoJ7QdD8B+4zHLgu+V10JEzAAwrl5U8DKFx+y1vgBHQ/7moMw3Xf 8TLTDwtzX8fmQuHzi+zxVXyQNldfgbSJrRoIIyPmHwqGTiLfjFl1o2dxpW43VSyn1hac 3OyGaniEkMwM0Ah2Gzf7VsK1T+KgjTaxdg4ldSdoectNeRkKheK3qJiSE/y1ILHn3gWC hC7A== 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 a15si19261399pgd.166.2019.04.05.09.17.08; Fri, 05 Apr 2019 09:17:23 -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 S1731571AbfDEQPo (ORCPT + 99 others); Fri, 5 Apr 2019 12:15:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48152 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731500AbfDEQPo (ORCPT ); Fri, 5 Apr 2019 12:15:44 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65681C0828B7; Fri, 5 Apr 2019 16:15:44 +0000 (UTC) Received: from treble (ovpn-123-87.rdu2.redhat.com [10.10.123.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BCE625D9C4; Fri, 5 Apr 2019 16:15:43 +0000 (UTC) Date: Fri, 5 Apr 2019 11:15:41 -0500 From: Josh Poimboeuf To: Luis Ressel Cc: Peter Zijlstra , open list , stable@vger.kernel.org Subject: Re: [PATCH] objtool: Don't use -Werror Message-ID: <20190405161541.6rs7iz4w4dj72azm@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: <20190405160550.62arkmvj67zm6oc2@vega.skynet.aixah.de> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 05 Apr 2019 16:15:44 +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 06:05:50PM +0200, Luis Ressel wrote: > 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. Maybe so, but objtool only supports two compilers: GCC and clang. And only one version of libelf ;-) > 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.) I consider that a good thing, because I *want* the build to be broken when somebody uses a bad version of libelf. A patch to produce a more useful error message (e.g., "bad version of libelf") would be welcome of course. If/when we get to the point where there's a valid use case for warnings in the objtool build, I would consider this patch. But we don't seem to be there yet. -- Josh