Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1841271pxu; Sat, 17 Oct 2020 03:02:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8CgAbvkBJ5yxNGss9lonD53XuPzGoYj37YSy3E0J/dlAQ+qpZXGo2juRFv1lWELx9pkjM X-Received: by 2002:a17:906:ce27:: with SMTP id sd7mr7598873ejb.264.1602928926729; Sat, 17 Oct 2020 03:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602928926; cv=none; d=google.com; s=arc-20160816; b=uny+oaehLm8cWmkwfITZ7RJmY8CLWNbwU/h1pY+5GgroWrEgf/sb56wH/tUKFoAbMC otN2nvKzFrF+Y2S/BkDbkNF1ds2Xs1OIqDpjlcLfgpe0nPeGpVAHAPi0RIaV2bfkxXzr h8XWoYDUWqDHuDa5iKsywKnu+mJCb7niU+EdnksyFjiQAe3t/Tbb9auHIdw7kk2ne4oe pkTuM+bX6loJea9gBFg+6Zlm5BFSSpFObaiwXfnW8JiQNNEW0iWkWLxbrjjqyPVB6vNg 4GvCbUIKCZbhwNRBaKQ9Qi2/Ui6zG7d3q+vOUqPH/w6xVY5KG9ohDeHfs+Iji8mwQC4Z aBcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=9fjS7eaT57ofMEHZwNrqjbWkUgfqckivLp1E3rz3i2o=; b=Sr4Og0wCao/7l0tci/AE+qaTNE2OWze/3r9jMZzESuwgOd1q/WpchiJH7GMrfXaQ8R 9opW9FTcqxSZyBH3QTGchRAaUPtMGp56P4cfCT86BiWDo51rbFx/hfj/eaW6tA+6AvUf VYWo6RA+JswIFEnUY72bNKky6hIyRIUTrZDui8lTv+TAsfnWofPFPmUyi8BvUwNkzgp+ bxEx2ljA0DmySlfI8Ugh2QC3xO1EeuB/6XNM2/NLviu8O9cspgmii7vR/8tb1FDgkS5O bE8Hyhs9JYJFNdbtdGlgxbNBO2VN1WJyVgF/929q+diNl8Jvtz5liK/gK+/dsFMmiQW1 nJfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zzAG7FVu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cy11si3558671edb.227.2020.10.17.03.01.44; Sat, 17 Oct 2020 03:02:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=zzAG7FVu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2437366AbgJQHHJ (ORCPT + 99 others); Sat, 17 Oct 2020 03:07:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:47850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437360AbgJQHHI (ORCPT ); Sat, 17 Oct 2020 03:07:08 -0400 Received: from localhost.localdomain (89.208.247.74.16clouds.com [89.208.247.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D0EE82074A; Sat, 17 Oct 2020 07:07:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602918428; bh=xA284iII8ZRmJJo0eUa2yxNmhAWRCMgnzZvf5SdcrYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zzAG7FVunUHB2umA5syQVcafMHCwBPvMDzgvzxMn/sJ6XjQBUalPSMl3ojdAfid4E 0x6XY/zyyPP6UBe2Gupm9G6cwNU4IbJPKsgg519HzOwFMJjnmus4EXaGF/yj5GXdbx lk8uXiLOMWZRgRuK/yeOXZ49jOzS8xSILcZPBlbQ= From: guoren@kernel.org To: palmerdabbelt@google.com, paul.walmsley@sifive.com, mhiramat@kernel.org, alankao@andestech.com, rostedt@goodmis.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, anup@brainfault.org, linux-csky@vger.kernel.org, greentime.hu@sifive.com, zong.li@sifive.com, guoren@kernel.org, me@packi.ch, Guo Ren Subject: [PATCH v4 3/9] riscv: Fixup wrong ftrace remove cflag Date: Sat, 17 Oct 2020 07:06:11 +0000 Message-Id: <1602918377-23573-4-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1602918377-23573-1-git-send-email-guoren@kernel.org> References: <1602918377-23573-1-git-send-email-guoren@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren We must use $(CC_FLAGS_FTRACE) instead of directly using -pg. It will cause -fpatchable-function-entry error. Signed-off-by: Guo Ren --- arch/riscv/kernel/Makefile | 4 ++-- arch/riscv/mm/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile index dc93710..f14aed2 100644 --- a/arch/riscv/kernel/Makefile +++ b/arch/riscv/kernel/Makefile @@ -4,8 +4,8 @@ # ifdef CONFIG_FTRACE -CFLAGS_REMOVE_ftrace.o = -pg -CFLAGS_REMOVE_patch.o = -pg +CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) +CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE) endif extra-y += head.o diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index c0185e5..6b4b7ec 100644 --- a/arch/riscv/mm/Makefile +++ b/arch/riscv/mm/Makefile @@ -2,7 +2,7 @@ CFLAGS_init.o := -mcmodel=medany ifdef CONFIG_FTRACE -CFLAGS_REMOVE_init.o = -pg +CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE) endif KCOV_INSTRUMENT_init.o := n -- 2.7.4