Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756006AbeAIMg4 (ORCPT + 1 other); Tue, 9 Jan 2018 07:36:56 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:53791 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755940AbeAIMgl (ORCPT ); Tue, 9 Jan 2018 07:36:41 -0500 Date: Tue, 9 Jan 2018 13:36:31 +0100 From: Peter Zijlstra To: Thomas Gleixner Cc: Josh Poimboeuf , David Woodhouse , Andi Kleen , Paul Turner , LKML , Linus Torvalds , Greg Kroah-Hartman , Tim Chen , Dave Hansen , Kees Cook , Rik van Riel , Andy Lutomirski , Jiri Kosina , gnomes@lxorguk.ukuu.org.uk Subject: Re: [PATCH v6 01/10] x86/retpoline: Add initial retpoline support Message-ID: <20180109123631.GH6176@hirez.programming.kicks-ass.net> References: <1515363085-4219-1-git-send-email-dwmw@amazon.co.uk> <1515363085-4219-2-git-send-email-dwmw@amazon.co.uk> <20180108134220.2for3pwgqbmkkq2s@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 08, 2018 at 02:46:32PM +0100, Thomas Gleixner wrote: > On Mon, 8 Jan 2018, Josh Poimboeuf wrote: > > I wonder if an error might be more appropriate than a warning. I > > learned from experience that a lot of people don't see these Makefile > > warnings, and this would be a dangerous one to miss. > > > > Also if this were an error, you could get rid of the RETPOLINE define, > > and that would be one less define cluttering up the already way-too-long > > GCC arg list. > > It still allows to get the ASM part covered. If that's worth it I can't tell. So elsewhere you stated we're dropping support for GCC without asm-goto (<4.5), does it then make sense to make one more step and mandate a retpoline capable compiler, which would put us at >=4.9 (for x86). That would get rid of this weird case as well.