From patchwork Fri Apr 9 09:53:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 418158 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1421338jai; Fri, 9 Apr 2021 02:55:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwgu8NRLK2YmScTlEhABYL1Obhg1E3qZBKOboPpr2RzIxZEZua00vZxQwQX9bl+lhlAp/X X-Received: by 2002:a17:90a:7847:: with SMTP id y7mr13447834pjl.65.1617962112912; Fri, 09 Apr 2021 02:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617962112; cv=none; d=google.com; s=arc-20160816; b=IcmasUT5ZmgJGD7ejW2uzBWcVnMZaC2ZjczIvuQ97dOhcBAg1j/+GRLIGyVHEOUsEK 2Q31u8E+HYLdYqeG7vP8jHFjKsqCFIxgxQF+zdXunfJkFcy87k6njfx57HSnk8paVbNG 1MSPfZwhkNRTxLHonVhNJn4R9uBlhuWXGLDKXVfPVgF+qrTS0wjZZUBhPE1chOR7hmZk XnlJka+YmuXInVMcpEXA/g30WdriqfXWUM5PZexDANmSL9z8h+MgiJMqswI8IxD/ZZRN /1k6gy+J98bQvJXLN6EAyHpIzyRpqE9GSyxeAfEwQbw87CsgNgaIcO1sCCkrzIG9geGM XnAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bKt4vJim4kK7qt0PiFpKlOE7BdPnhKVcoo3Xq14qvqs=; b=QP1w9YzFsv5McBIodLxPUf+37TOsvspmRYmkYWr/nGwrNIawjoKV+nHcPlu6wKgo/X jCmF/37eOvo16w+FFiTi8yc6p79StfXGYfRHF/Pm+WcpJIuBQtyOHclBQ2PZTTLg2cyZ McQwSwxqxlXNc3GUB4Vv3EO3K6kg/Bkr8EppvEEdse4FmGgUD1ZeWDT9khKNhORUl0vV QbNcoqzhJWjgVAJSkjlTqeWdQUGfnVG3P8yWhyG3n9INsRQTGnB7g+vrtJgaW8QyMtFC cj1N+rrlTltqj7HDoXN7CgIPR5VUrVPl3CDRYoo3saAAwCrwbGnxAPPEDgcDLXB6wVl2 PHgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MQTWNr1f; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si2031855plo.430.2021.04.09.02.55.12; Fri, 09 Apr 2021 02:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MQTWNr1f; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233461AbhDIJzX (ORCPT + 12 others); Fri, 9 Apr 2021 05:55:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:42858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233369AbhDIJzQ (ORCPT ); Fri, 9 Apr 2021 05:55:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 020F7611C0; Fri, 9 Apr 2021 09:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617962100; bh=mGIK2BwVvX8Fl3XDAr452fbkcDbKapAu60q+46qrF0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MQTWNr1fNlVArmkvOWlEM6mjwgffDVwS4WHLL53EBVZL9VJJKTCde1H62BNFYIyTe d12lTaaiGZeIvoO+fMhdlg8DNICDhPyBB8iaOzV+axOBIj5D02ouSa2C1m6zwSiqPI D2/k3zA8qPcloGGAlbdi9DAjt9+n/DemZLyTH/8I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Ingo Molnar , Sasha Levin Subject: [PATCH 4.4 04/20] x86/build: Turn off -fcf-protection for realmode targets Date: Fri, 9 Apr 2021 11:53:10 +0200 Message-Id: <20210409095300.095843008@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210409095259.957388690@linuxfoundation.org> References: <20210409095259.957388690@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 9fcb51c14da2953de585c5c6e50697b8a6e91a7b ] The new Ubuntu GCC packages turn on -fcf-protection globally, which causes a build failure in the x86 realmode code: cc1: error: ‘-fcf-protection’ is not compatible with this target Turn it off explicitly on compilers that understand this option. Signed-off-by: Arnd Bergmann Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20210323124846.1584944-1-arnd@kernel.org Signed-off-by: Sasha Levin --- arch/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 5fece9334f12..2b3adb3008c3 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -34,7 +34,7 @@ REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -D__KERNEL__ \ -DDISABLE_BRANCH_PROFILING \ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ - -mno-mmx -mno-sse + -mno-mmx -mno-sse $(call cc-option,-fcf-protection=none) REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), -ffreestanding) REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), -fno-stack-protector)