From patchwork Fri Apr 9 09:53:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 418162 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1423536jai; Fri, 9 Apr 2021 02:58:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMTin/jjibfufFDRzXIL2ZzV6uf8GMj3g4ELgKku9eiTz78m/5KINdfJU5Ymo2wGbT9iUU X-Received: by 2002:a62:db43:0:b029:244:3c4c:6b90 with SMTP id f64-20020a62db430000b02902443c4c6b90mr7638413pfg.59.1617962329387; Fri, 09 Apr 2021 02:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617962329; cv=none; d=google.com; s=arc-20160816; b=GScp610Z9tVJYp9worAzWAGOIE1GYWXCdIcUfuYB+00/fy7B9UAEoMdkzISybscPeO HlkRexmOEJZOH5bK4wOjOHe71QaSNr+JyuGqoI/Iuzny22+K92ERdTLFpgHvwz928GF4 Bn0an1ERtcDt4VqxgF+efep2RevgNzGEedp54ok6ioa7NYcLkoEgR3uH0lj5dEfkY2ua 4sJAbUcZGtGoiDTdrdEcDslPLytKGnPpHHYj+pgZbSOiSrI8C7BftZxsuIMQPvg0CJ6c goJZ2n0/L0OuHi7mt1wZNnenpBYqj2+UiSuB2rTQn5VrnXgH8qlnJ4Jzm0CwwrtKGNWW EnMA== 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=kZQlqv2sD2TielZTlEpO6hhf14yReqq5Lx2RPmks3nk=; b=uyBFmcmBhnyK9ONVdfXi/cJfpGRluk++9ZFui7fnffWF33qSDIDRFyM5SFkYBGTflW aZgSIBRc5g/LSYYIFIk78jwELuXj7d7avRfbS2/ZTGTmCy4ueO9uzxMP6lPLomvF8+fr MGP2Kuw1GZSd12F03P5VbjdMDI3b0TxU/QivnCwiClwNqD+sA0oMQA5Z0JOp5D/GPRk8 3dMpcdzfvyjm1xAVTIfENSZT/lnNy82tDGnkGXDmwHdRKEierEhbb4mdJmmPbb7RsnZ5 MM5pi58FHNKBZJPEUEaLR0Fm9VLGttoiZWl4xACN97lWcKIgGbx9s32JXROMv32+Ompx tB4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X4lELQr8; 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.49; Fri, 09 Apr 2021 02:58:49 -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=X4lELQr8; 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 S232964AbhDIJ7A (ORCPT + 12 others); Fri, 9 Apr 2021 05:59:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:45290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233440AbhDIJ6D (ORCPT ); Fri, 9 Apr 2021 05:58:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B330161221; Fri, 9 Apr 2021 09:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617962255; bh=6ZGOqPJK9NlLnjRB08jhmZBf6echVbUhN2/g6d51iB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4lELQr8jArDwR3R8wE/iTExZOZsjRcZGzrQf9Vn+aCNeiydB84GqPERFIQ1Rfe5+ QFl/GDgzlvS3FgBi5lxSL68/5HKUdmuyJ41W/qyK5xYII2J/0Qz/FxuBxxfyYZHBlp PvG50w57OBjzdKd1MBsU+8ZUDXU2jju3+9yWcSTc= 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 5.4 13/23] x86/build: Turn off -fcf-protection for realmode targets Date: Fri, 9 Apr 2021 11:53:43 +0200 Message-Id: <20210409095303.318804236@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210409095302.894568462@linuxfoundation.org> References: <20210409095302.894568462@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 8ca3cf7c5ec9..59942e349e5f 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)