Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965129AbeAJHn5 (ORCPT + 1 other); Wed, 10 Jan 2018 02:43:57 -0500 Received: from verein.lst.de ([213.95.11.211]:45423 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbeAJHn4 (ORCPT ); Wed, 10 Jan 2018 02:43:56 -0500 Date: Wed, 10 Jan 2018 08:43:54 +0100 From: Christoph Hellwig To: Alan Kao Cc: Palmer Dabbelt , Albert Ou , Steven Rostedt , Ingo Molnar , Masahiro Yamada , Kamil Rytarowski , Andrew Morton , patches@groups.riscv.org, linux-kernel@vger.kernel.org, Alan Kao , Greentime Hu Subject: Re: [patches] [PATCH 1/6] riscv/ftrace: Add RECORD_MCOUNT support Message-ID: <20180110074354.GA8800@lst.de> References: <20180110073814.32338-1-alankao@andestech.com> <20180110073814.32338-2-alankao@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180110073814.32338-2-alankao@andestech.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 03:38:09PM +0800, Alan Kao wrote: > -LDFLAGS_vmlinux := > +ifeq ($(CONFIG_DYNAMIC_FTRACE),y) > + LDFLAGS_vmlinux := --no-relax > +else > + LDFLAGS_vmlinux := > +endif Why not: LDFLAGS_vmlinux := ifeq ($(CONFIG_DYNAMIC_FTRACE),y) LDFLAGS_vmlinux += --no-relax endif