From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,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 7C805C282CE for ; Mon, 11 Feb 2019 16:13:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4D73F20700 for ; Mon, 11 Feb 2019 16:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549901630; bh=EYJc5Jn3jkiS/U4G53nWwKcf96xptPSD/Hxv9YY+IdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=IHiQMeUiZw5SLvQDCGs3VAu6N+8t0/SMjv8w8SfFgOaoIx6eWuR5S3wGWyGAzQy0A 7IA+27As3/jf93DZLSKIqSAOoxHS+nltuPce+3YGWhbBwUFhFG2DHp686wu3iGlDde yqTWZksxcj5J9VqU5Xcc4EK5KhBXslvVfOg6vGlo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbfBKOWb (ORCPT ); Mon, 11 Feb 2019 09:22:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:55382 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728743AbfBKOW1 (ORCPT ); Mon, 11 Feb 2019 09:22:27 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 CCB4920844; Mon, 11 Feb 2019 14:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549894947; bh=EYJc5Jn3jkiS/U4G53nWwKcf96xptPSD/Hxv9YY+IdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rGdfbYJJATFp6+rWbUOMYauSW2jGwJbp4G1w/tOf1Tjbtdvr2kepmhIriccH29cR1 IQUgSq6+iDgmN13soC3hWNLrJmF2RU5Rx2EEvjxw3dyfaYlJE1SfX9823zXiJ4A/3L 7nTzsHWri6xXiCAiF8AvCJ8v5XnNWxIMV0Cy4sfU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nickhu , Zong Li , Greentime Hu , Sasha Levin Subject: [PATCH 4.20 014/352] nds32: Fix gcc 8.0 compiler option incompatible. Date: Mon, 11 Feb 2019 15:14:01 +0100 Message-Id: <20190211141847.307317071@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 4c3d6174e0e17599549f636ec48ddf78627a17fe ] When the kernel configs of ftrace and frame pointer options are choosed, the compiler option of kernel will incompatible. Error message: nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are incompatible Signed-off-by: Nickhu Signed-off-by: Zong Li Acked-by: Greentime Hu Signed-off-by: Greentime Hu Signed-off-by: Sasha Levin --- arch/nds32/mm/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/nds32/mm/Makefile b/arch/nds32/mm/Makefile index 6b6855852223..7c5c15ad854a 100644 --- a/arch/nds32/mm/Makefile +++ b/arch/nds32/mm/Makefile @@ -4,4 +4,8 @@ obj-y := extable.o tlb.o \ obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o obj-$(CONFIG_HIGHMEM) += highmem.o -CFLAGS_proc-n13.o += -fomit-frame-pointer + +ifdef CONFIG_FUNCTION_TRACER +CFLAGS_REMOVE_proc.o = $(CC_FLAGS_FTRACE) +endif +CFLAGS_proc.o += -fomit-frame-pointer -- 2.19.1