Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3621898imu; Mon, 28 Jan 2019 08:00:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5v8jP85abO5+f/tC8A2OE6wtqD0ARqPWvVjKpM6KE7FnGpW+5kEwILuzxSA1O0PsbDQO3L X-Received: by 2002:a63:ce50:: with SMTP id r16mr20128002pgi.217.1548691247567; Mon, 28 Jan 2019 08:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691247; cv=none; d=google.com; s=arc-20160816; b=cfsqMKacPWDytgIOMlkQLDAh5aMffQ+i1UVNGxyUVj7sufdgZDj2pWDBB0b6RGNe9A YZEi5KRgyHP5ZVZaouzSMA4dQyhAFh9E18O5ydffTQPI20pzafz87p8LDBjNJ/9mT9VS YKd9EuSrjA5PiJ2yAw+5o/7dL8VNLzOh5zpTA05rCMtm0RL2UiIdUfK1/apbQZtYx68C /yWWi8L2hcfqac5/d8Xmhmm2cAdGYuYNOrHFl0WncHcWBYq6HVolmxoN9r4qjqqWpHcB GVNsqx3v5kXVlKTief9nIkmWGnrDTLcI75yJs4ohocNcWbVAckpI6bGNlRvxUAmVzvkz LdmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9sCY9nNsKbIuH7Ygyx16m8Cp8YMs/kj3+v0ZW8ro0u0=; b=xtexjynIz237obhHSe+TdVnBFeN2XTWWtZ+1m4mjfd02uAkDiBUH7z2zURrr/KJ/dK 1JwmmMhzLMgHOQe0PWecnROfGKBdZYf6ojaOdx8MFEAaU6YFsZWouHnirFnO2RKgjpLe u/XY12yZcVr6J/Hy2vWiKh9amIqyJFJOB2HrBbs+akh9i/EE7GKbv/eQQXDbonhKU7ZH Py898iEB5lD4H22Cl1hxkeXiFbD4R2j6T0jzQV8QI3pXV/b7SODYDSnRqk+vaYGQSCZm s9nRX0R54nIpVKoxe1eyQlYK+SvhL1ya4gPY2eLjsNqi45DAf4mOPfNxtl2XQfWbsEEU gjGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Skz4F3UU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si2045703pgr.569.2019.01.28.08.00.30; Mon, 28 Jan 2019 08:00:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Skz4F3UU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730138AbfA1P74 (ORCPT + 99 others); Mon, 28 Jan 2019 10:59:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:45222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727858AbfA1P7y (ORCPT ); Mon, 28 Jan 2019 10:59:54 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A317B21852; Mon, 28 Jan 2019 15:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691194; bh=HjyI+ZYByPbAcYVUfAbbI5+uQjoPQ7YlKhMHTBRD8u8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Skz4F3UUcZkHZRv1TBphZ4176RJoIZLxeTw+yp3fn8PHJka6UhxBhpORL1qsgVugo fdCopHLj5aki2+4Ogsi/0rNCuzzNMpIg998PmzkKBYR+qFVLVpNyseeYiSeO08JgXC G39aldF3oC7KteMqJL3A75f5bQCFzHxhCetHpZyk= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nickhu , Zong Li , Greentime Hu , Sasha Levin Subject: [PATCH AUTOSEL 4.19 010/258] nds32: Fix gcc 8.0 compiler option incompatible. Date: Mon, 28 Jan 2019 10:55:16 -0500 Message-Id: <20190128155924.51521-10-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nickhu [ 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