From patchwork Fri Apr 9 09:53:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 418159 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1421929jai; Fri, 9 Apr 2021 02:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1H2IXM2YOHquF4het3DICiE9Aa94aF5BQUB+NCkXD2jUV7SS5W5yoIjWuJn8HP/xT29KM X-Received: by 2002:a17:90b:4d05:: with SMTP id mw5mr12858825pjb.236.1617962171332; Fri, 09 Apr 2021 02:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617962171; cv=none; d=google.com; s=arc-20160816; b=eRAWgN6hqOAyRrUeVyAIvXFu8g3Gy0Oi3ZxqvBb6KCBN7TCsXnftmiSPKRQX+8gFmz oiMiAI4+r/xGvMZ1IbAX/UI1Jf2/IRDWudZOQgjvDUl+jjj1oHNvhfUJDni1HLkym49t oqpixKwADjORFbph1s0Ikngl8HR6QN4CXsA1qBp0XFK6obIObGvqYSeKAJUftaHo986W s0FXlhckGDjMlD2W2Vh37MJymqA0RkH2brQQo1IvKZKZzrqIt63ZcPIEE3x9msUzIxQq rg1UoqQt57aLaqgmdhhwLHDqE86iT/DB+NQZpCW5mNclCE7jjgqe8T/asQ56Efd18A89 Ih1g== 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=O345FFuixjBLekdAXyPjTTprDSwlMIvGMVhinO5dAug=; b=wkXmEKIHtT6nB7FLol3vv+6BvdH8d9QiJ6rTJw65DBmFpAi5aOJIFOs1dDHff2+2Hf BDxfY/8/e+jY9GwqAdIZKURpSTIAekhQySQzcGh6yWPj+A+PAO6DxdbaqOzOfKJyygVs /bpy0ZckYk7h/EsRnDaxkK/zsBe4S6nLO1bkr2Uu8bcFNh5vp/mYrhUyW9jByrwoRN34 /HNQS1tLKbsNdEFlqxaFz3pOn5rfl1/N3/YC8VaS0bEB+h6yXiYAu4+bqizKbwIPGkOM HFh2QQR9EBM8mMkyLo0+aEgfdB+fmvmVdmGjOwrhju2KfWXdiRyl5FmtkQGVALjqf5of 1cmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M5fWQsg2; 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 h2si2281766pfc.321.2021.04.09.02.56.11; Fri, 09 Apr 2021 02:56:11 -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=M5fWQsg2; 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 S233630AbhDIJ4V (ORCPT + 12 others); Fri, 9 Apr 2021 05:56:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:43810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233467AbhDIJzw (ORCPT ); Fri, 9 Apr 2021 05:55:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 959BD611C2; Fri, 9 Apr 2021 09:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617962139; bh=Uqml/KA/LDaiQMffdH+X3U5y31CkFL+hRJwvfJ42j8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M5fWQsg2ZUvxD7yTlNDabBH+q/C13lKg2JxyJZB6aEFtUvUvbpkNM4060Bv+24TxN HV6Kp0ww+1Esk+ug+Zt/MA+pDXF4GRVXMd0RaRrdpCazZKKNNZwTRpoagt34x8MlIw FHYqJNmHrcMRWrR93RL5EsVm6p5tXiRa0XC8MZpY= 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.9 05/13] x86/build: Turn off -fcf-protection for realmode targets Date: Fri, 9 Apr 2021 11:53:25 +0200 Message-Id: <20210409095259.801666868@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210409095259.624577828@linuxfoundation.org> References: <20210409095259.624577828@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 9f0099c46c88..9ebbd4892557 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)