From patchwork Mon May 18 17:37:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 225611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8ECFDC433DF for ; Mon, 18 May 2020 18:22:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 718FB20829 for ; Mon, 18 May 2020 18:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589826153; bh=xXS+/MdvKi/RYb6jXSYyRnxzD0MlD9V7dETX8vxD1xE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=u8bCGIsUnR33eT8hn/l6I4LWZlrlONqckOigulhhOZPMTBARBjOrqC3e3+mp6fhRn xtpSXe1UtK9m602sDEwnSWUFdujFpiLc17rSmfPvvIQJbqyucHp6x3ilB4BH8F9WQn gH6pTcx3t5SzBNpldh3woS6E7Sj1carbVg3Al6KI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730211AbgERRuZ (ORCPT ); Mon, 18 May 2020 13:50:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:52580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728608AbgERRuZ (ORCPT ); Mon, 18 May 2020 13:50:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D9F220674; Mon, 18 May 2020 17:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589824224; bh=xXS+/MdvKi/RYb6jXSYyRnxzD0MlD9V7dETX8vxD1xE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hRUFuZVbzoFBT2YuUCFLUUSYvo2ghOZgKtafyaEFJPtRfFfz+sqElzIGP9ZTFO92x PKx1+CAWBEYv+Bj0UqsMIvJsGcNg+rcbKOJDpWEH4sy7akkRI32Lwd36029V65PlK+ x5NhBiZyQXClPClJ8P0sjDyQzyMCI4n5sEeo5ewM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergei Trofimovich , Jiri Kosina , Masahiro Yamada , Thomas Backlund Subject: [PATCH 4.14 114/114] Makefile: disallow data races on gcc-10 as well Date: Mon, 18 May 2020 19:37:26 +0200 Message-Id: <20200518173521.377720451@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200518173503.033975649@linuxfoundation.org> References: <20200518173503.033975649@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Sergei Trofimovich commit b1112139a103b4b1101d0d2d72931f2d33d8c978 upstream. gcc-10 will rename --param=allow-store-data-races=0 to -fno-allow-store-data-races. The flag change happened at https://gcc.gnu.org/PR92046. Signed-off-by: Sergei Trofimovich Acked-by: Jiri Kosina Signed-off-by: Masahiro Yamada Cc: Thomas Backlund Signed-off-by: Greg Kroah-Hartman --- Makefile | 1 + 1 file changed, 1 insertion(+) --- a/Makefile +++ b/Makefile @@ -663,6 +663,7 @@ endif # Tell gcc to never replace conditional load with a non-conditional one KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) +KBUILD_CFLAGS += $(call cc-option,-fno-allow-store-data-races) # check for 'asm goto' ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)