Received: by 10.223.176.46 with SMTP id f43csp2695489wra; Mon, 22 Jan 2018 01:46:24 -0800 (PST) X-Google-Smtp-Source: AH8x224AvRHjf9Ads/FXcFmWnctkZxWFvfOv/C2eYtdoGZtNc7DSe9OTWgONNkweSLDqaZP7QC/P X-Received: by 10.98.64.9 with SMTP id n9mr8089266pfa.194.1516614384762; Mon, 22 Jan 2018 01:46:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516614384; cv=none; d=google.com; s=arc-20160816; b=RI9v18/73saU8d4lpgQe3+mYM556+6envc8lmDMhlKznyFFO9VZy2j3++YK0po2oRK kHUYyu4J61sNSulRxpEWqi2bFBHOaQA82OyQjY9uEeU8BZdqakrci6VC6HKakdCX6hpc IeTebhPvs8K6gizLXZT44e3zIQMLO8/6D2soxvqrX5quImvmmj7q9FpKuhocwOsHxbSW XOXR6DDVxAHp5cT1cP4E+5EGdZFaHiP4EDpAiT9cCdYwVbmoeq1EQyhL/+op3AJK28Qn 2LNv6hERS7tcnMm/r/UW4GaJulcj11wiWnes38wvVfse9p0LoITcwxtuz/hdURPNoZN5 6jZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=epaQOSsLdVp/Z9ig3BWnSeJgMgpMvA0l0rUkgw6gcfU=; b=uVCynWJjlIIfPKMUPMLwLVzQRvsjNznDOGaVmFvuTr1MQgXvc6vkZ7E0fkFtTr7OmD CouoJZONKgfHPNRXWZ/mfvX3ANa3CSzb+GLTxXR8HrkfAatb+IkRiUOnttoxauYZT0fS +npnd4h8QwwhNhXt8iQSDHrhSiiMn8g6ImlpiJNjNcc24N1+ceoiLLOG0IviXU7rmdPr MNF5SGky7VITlt0mO2DoqSxVg5VMJH6rWgaLqGcHPaFn2PK7uD4AmZVEAjSStkZ1IYUP Oyx6h4jV/I2amAJLXizqyOT6WJkuEFzmNMpmhWekb20VpLH2LIrDh0YTTJ1+7NhFSSWX A8Pw== 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 a59-v6si1745534pla.366.2018.01.22.01.46.10; Mon, 22 Jan 2018 01:46:24 -0800 (PST) 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 S1751389AbeAVJpz (ORCPT + 99 others); Mon, 22 Jan 2018 04:45:55 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:58504 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbeAVIl1 (ORCPT ); Mon, 22 Jan 2018 03:41:27 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AE4A3F0C; Mon, 22 Jan 2018 08:41:26 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Thomas Gleixner , David Woodhouse , "Peter Zijlstra (Intel)" , gnomes@lxorguk.ukuu.org.uk, Rik van Riel , Andi Kleen , Josh Poimboeuf , thomas.lendacky@amd.com, Jiri Kosina , Andy Lutomirski , Dave Hansen , Kees Cook , Tim Chen , Greg Kroah-Hartman Subject: [PATCH 4.4 20/53] x86/retpoline: Remove compile time warning Date: Mon, 22 Jan 2018 09:40:12 +0100 Message-Id: <20180122083911.136146456@linuxfoundation.org> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180122083910.299610926@linuxfoundation.org> References: <20180122083910.299610926@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Gleixner commit b8b9ce4b5aec8de9e23cabb0a26b78641f9ab1d6 upstream. Remove the compile time warning when CONFIG_RETPOLINE=y and the compiler does not have retpoline support. Linus rationale for this is: It's wrong because it will just make people turn off RETPOLINE, and the asm updates - and return stack clearing - that are independent of the compiler are likely the most important parts because they are likely the ones easiest to target. And it's annoying because most people won't be able to do anything about it. The number of people building their own compiler? Very small. So if their distro hasn't got a compiler yet (and pretty much nobody does), the warning is just annoying crap. It is already properly reported as part of the sysfs interface. The compile-time warning only encourages bad things. Fixes: 76b043848fd2 ("x86/retpoline: Add initial retpoline support") Requested-by: Linus Torvalds Signed-off-by: Thomas Gleixner Cc: David Woodhouse Cc: Peter Zijlstra (Intel) Cc: gnomes@lxorguk.ukuu.org.uk Cc: Rik van Riel Cc: Andi Kleen Cc: Josh Poimboeuf Cc: thomas.lendacky@amd.com Cc: Linus Torvalds Cc: Jiri Kosina Cc: Andy Lutomirski Cc: Dave Hansen Cc: Kees Cook Cc: Tim Chen Cc: Greg Kroah-Hartman Link: https://lkml.kernel.org/r/CA+55aFzWgquv4i6Mab6bASqYXg3ErV3XDFEYf=GEcCDQg5uAtw@mail.gmail.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/Makefile | 2 -- 1 file changed, 2 deletions(-) --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -194,8 +194,6 @@ ifdef CONFIG_RETPOLINE RETPOLINE_CFLAGS += $(call cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register) ifneq ($(RETPOLINE_CFLAGS),) KBUILD_CFLAGS += $(RETPOLINE_CFLAGS) -DRETPOLINE - else - $(warning CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.) endif endif