From patchwork Fri Apr 9 09:53:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 418161 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1423251jai; Fri, 9 Apr 2021 02:58:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHWgG1Givq8FyOm3fhfc+EIl4GH7ToAwdUMXqrp6IudpRvW2qJueVteuEgmyIJyGxY06// X-Received: by 2002:a17:90a:f3d8:: with SMTP id ha24mr12845728pjb.137.1617962296167; Fri, 09 Apr 2021 02:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617962296; cv=none; d=google.com; s=arc-20160816; b=gykKrzhEea+jDdUDOV+pysWIdGYH6LdLFrsLsXXMFHte87ji+IVpKPt2od++OiqQZu EmNNdAU3nhyX4zAqnGASeAG2gsKBdirjxjbW7zHKKsz7ElE/5b5S6L3L7ZoBMfQqZXp+ RiTPUYl9akk7vB94jkTkd0IEJzeGqPNx41FrGnbCtkAdlIIFXzYiwJaQmJsD+tDX+P7z 2RHA8tYLvjlP0bzXDhp5juq3WpGYk4rGJTy/KoHq6OnvrGCgRg2xjU+9GnLszP8Xxm9Y pGdPaelj4AkQo17g5Q8zbmv1+SXOHN7cWsy9Af8mFDLgFIlbh+Vp1BW/zoXTcG+1zFyE mwgw== 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=VtPPBJ7Y2rXSJSYQFeou8zQmAplCGV6DtPvmM2l2AaY=; b=Y5LuOpWfPDn4OZhAN40+RIaMuXj0wtbUeWZQSmYV+fOo16cupxFce5/qyC9kYPZYTf 85OwoOeD8EURmuZ2jSrobS/jDh3+8J+vrv4psqxU5ryeEBKygBAop0yyoFUtsiyXjkFc 42Ml1r/mD8rx7hbxnw9q9Q0hc7CImRGkfVQex+WUX0Jp3cGIG4ErY1mPf+Sugy8vss+N nl1wAX79Fp2uDnV55/dIVZ2aAdUX+bMv/r/7KCSPQjTUb88ADvxJ3Bz5OxTHxWucJPYQ 0Otm32wqb6Y9hoy2r0zvFQRw+RN+6cg+3VQBMQMCx31A4SUk7b1UBqohaommtfLxUFlL +K7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oH2rzKiK; 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 x12si1777130pfn.318.2021.04.09.02.58.15; Fri, 09 Apr 2021 02:58:16 -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=oH2rzKiK; 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 S233811AbhDIJ61 (ORCPT + 12 others); Fri, 9 Apr 2021 05:58:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:43734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233599AbhDIJ5c (ORCPT ); Fri, 9 Apr 2021 05:57:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47A9F61178; Fri, 9 Apr 2021 09:57:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617962239; bh=RTKXeiA0604/rUvRsLjFCfYgJQadB8gMI4N+zhsY0Yc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oH2rzKiKT/SS8ijYKQvQFnjP8VfwDR4dj3gtZiAkKzjIRlxgUkws3TSik+gtOCVg5 MsQqwCLxNY29dIW5QY9YrRnPDp5ruTxQvLiBeGdDCCQ5TyvK67tFIW1g8T32Jf76mO 6JSMrE0CtMdlbQczjP5M9Hemen5CkRWUs4+qL9r0= 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.19 09/18] x86/build: Turn off -fcf-protection for realmode targets Date: Fri, 9 Apr 2021 11:53:37 +0200 Message-Id: <20210409095301.831634042@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210409095301.525783608@linuxfoundation.org> References: <20210409095301.525783608@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 75200b421f29..6ebdbad21fb2 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -34,7 +34,7 @@ M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS)) REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -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)