Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4919708imd; Tue, 30 Oct 2018 09:16:43 -0700 (PDT) X-Google-Smtp-Source: AJdET5d/wAou/l28Xlg1P6RZvZMb8px8cKoZWtzJTYXbaWaw9EkXPKLImiZFMY7TM7E1Kd93iNQd X-Received: by 2002:a17:902:2924:: with SMTP id g33-v6mr19598719plb.76.1540916203378; Tue, 30 Oct 2018 09:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540916203; cv=none; d=google.com; s=arc-20160816; b=FJ7XUh516mizHKdZ0/fKOr2m3sbXC9xRWY/tEEmJErKP5I7bUY97SM/TMWPyOC4mmL 6cRQdWQvW/g63OoHYUkdH4UIuD65txSd0ADMq2yQprs0FifOxmcRseErGmayZScJN46C wOxI7qHXtVnhomXva/ennYfrRy+I4k6lVIFNZyL/VcY/fc1hCu5EnwuZYJn8THcj9Lc1 5w/kuONFEpdXtu1LpSxFOeh5kv/zjjKlsZmGTd4CXNVuQIfk4dNjte7QTJ7dQmEZo8xF 0c8C0Lsl4+PfWK+vUKYaRtQ4AlAYJXe7DhhKPLXYnh9dJbfBjI90Ma/oGAhhSHIopbp1 BcnA== 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:dkim-signature; bh=oulFfH9JYVCCDp8mixdnJfogwwFY+N/JvVZ5AUVW1Cs=; b=K/hGVjYxjF3OG0JcNx9ibPllz7JVzaqbJAk5WOTMz6dxADy9rqnPmTM+AZYiIv1krm JRmKbdH4mZgO/TQFTw/GXhwgJ6xSnJF4FCnVenqC3rdJpbKGpqaGcyMdN+8ic17qnpX4 tkt0XZyczZ3MfWyXBnB1XXtgK5ZfPVFkULq83pVrYNqcNDOoesueYaYyORY2EsMVdotF euB7FIicZsu/4pozRAYxJOQsIfYJdL0iD4B6nc4d7G8J9iElrYx07LuI4uiFOVkumE/r l5F5NnWQ6fWsFymB/xK/1BBc41SYbLXirdAI6mLLS41ltVwZ16vzhl5Yf5yhisTdSxT2 3FIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="d0/wpFci"; 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 a61-v6si24916979pla.430.2018.10.30.09.16.27; Tue, 30 Oct 2018 09:16:43 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="d0/wpFci"; 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 S1727665AbeJaAXm (ORCPT + 99 others); Tue, 30 Oct 2018 20:23:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53160 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727648AbeJaAXm (ORCPT ); Tue, 30 Oct 2018 20:23:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oulFfH9JYVCCDp8mixdnJfogwwFY+N/JvVZ5AUVW1Cs=; b=d0/wpFciFWl09/DEtystyKyfZ Ayf549jf7VMrRZVYfWJx5MBeivHLVTe08BdBuTXu+xE0C4OFakZm3V88PbSGYrOg7orsvl3/YkrLI 5RoRKQrbVidA6JSw44P7MRdDzW20hJItCajSNaT+muQxSHrHkQ0Le44cxrP/W6/aaIL4zpOoW1YDu pztgkEZXx5Od8vWVKJbZK1I0ay9kq9u2V9B4yWNVJ1TF0p1LReeg/hVlZOcJ31Cq/jfiUha7tfHsY +Sn+z714xYPPiUvWJ5thKByh0wCUq5nnEp0lMtjqkjhkhJ9WWyvjmgjbk2RuYVDQnr84syN1XJHie 0Paq/9f7Q==; Received: from [24.132.217.100] (helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHPTo-0007D0-0a; Tue, 30 Oct 2018 08:35:10 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B36DC202A40A3; Tue, 30 Oct 2018 09:32:10 +0100 (CET) Date: Tue, 30 Oct 2018 09:32:10 +0100 From: Peter Zijlstra To: Zhenzhong Duan Cc: Linux-Kernel , mingo@redhat.com, luto@kernel.org, konrad.wilk@oracle.com, dwmw@amazon.co.uk, tglx@linutronix.de, Srinivas REDDY Eeda , bp@suse.de, daniel@iogearbox.net, yamada.masahiro@socionext.com, michal.lkml@markovi.net, hpa@zytor.com Subject: Re: [PATCH 1/3] retpolines: Only enable retpoline when compiler support it Message-ID: <20181030083210.GA1459@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 29, 2018 at 11:55:04PM -0700, Zhenzhong Duan wrote: > Since retpoline capable compilers are widely available, make > CONFIG_RETPOLINE hard depend on it. > > Change KBUILD to use CONFIG_RETPOLINE_SUPPORT to avoid conflict with > CONFIG_RETPOLINE which is used by kernel. > > With all that stuff, the check of RETPOLINE is changed to > CONFIG_RETPOLINE. So what happens when we select CONFIG_RETPOLINE but do not have RETPOLINE_SUPPORT ? From a quick reading we'll silently build a !retpoline kernel. I would expect a build failure.