Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp422013yba; Fri, 5 Apr 2019 09:16:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMNlFX3f7rc2bUqPaGV9U9FpMOCXlJIkiDAgOtC4WHOBx6dqE1HlNmANdoCD+61NXmkl86 X-Received: by 2002:a62:6a81:: with SMTP id f123mr13418151pfc.40.1554480966409; Fri, 05 Apr 2019 09:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554480966; cv=none; d=google.com; s=arc-20160816; b=nOzXOONyFRbOOtmpirHiLgaE0YQpNSOPMgDmqGXU2eVL9xMGI+z3tKBKIYsLZSUwCG zOoMNg/Vp0LOBH7AV2pOQgoD/Z8xKsqtH0RCaYlwvi7xWyBReeSlAc+rW4lcQsHiaKET hYvD4qYSl/1cQzMc54DTJHd7gzFkgzHQIz9D+XEFPgI89ocam7Ans5uETb34v7CpBqoo iH4ry58tPLqEnfPoklKS7mtW/xpSV6x89+hpBE8zDUzZzS7xv53WXIQsWuVcdBelWCFC qKeiNrC+Svyv9FnAkjwLmH0Vz1gkIPVAtcXFNB76VmSqocnKo4KEbILMnu6oWKEbb6bn f9Ag== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=l0BgCETfY0bR+dbsyn/n8uKFXeh41i8V8Soky3X/4+c=; b=RQXDZ/GNcGSqokLRwoMeRaFPhULLHP9+VAxavb4XI3igYwoRlLy/cGONJLJJyqDLG8 jaRHtXt/oUcmCDazZsT0UiacU43fzjInuWPAyAw0skSXKfqRqUVzP5VT+UJ44vtSrfze ge16kOWMgCUmn6MQCYXtaA5ZCP3O77PA40Uusgy55e9OuGGc6ENnW+Kvj0IV3DJ5Ob+l az11/0ATjM3nKLQs+hlKI3njr2DLqSs8ZZVpKi+j7HFGToMeTSwDAx1q0QRWsgopTaSW Kez2r7NQAAdrXb3/ia+JIks8rXxslpPBKGK2hKSmzDg/o44qvskr9kvDB4CGKqekgtZ8 FcaA== 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 t22si19089241plo.74.2019.04.05.09.15.51; Fri, 05 Apr 2019 09:16: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731536AbfDEQPQ convert rfc822-to-8bit (ORCPT + 99 others); Fri, 5 Apr 2019 12:15:16 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:52239 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731454AbfDEQPK (ORCPT ); Fri, 5 Apr 2019 12:15:10 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-192-z6o3oXjaMHOKV3P61-wwvw-1; Fri, 05 Apr 2019 17:15:06 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 5 Apr 2019 17:16:14 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Fri, 5 Apr 2019 17:16:14 +0100 From: David Laight To: 'Luis Ressel' , Josh Poimboeuf CC: Peter Zijlstra , open list , "stable@vger.kernel.org" Subject: RE: [PATCH] objtool: Don't use -Werror Thread-Topic: [PATCH] objtool: Don't use -Werror Thread-Index: AQHU68meTsW4XthB40qs85GeKW+DmKYtvJfg Date: Fri, 5 Apr 2019 16:16:14 +0000 Message-ID: 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> In-Reply-To: <20190405160550.62arkmvj67zm6oc2@vega.skynet.aixah.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: z6o3oXjaMHOKV3P61-wwvw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)