From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:33427 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751802AbYEOBhG (ORCPT ); Wed, 14 May 2008 21:37:06 -0400 Message-Id: <20080515013705.487397915@goodmis.org> References: <20080515013028.056366414@goodmis.org> Date: Wed, 14 May 2008 21:30:32 -0400 From: Steven Rostedt Subject: [PATCH 4/4] ftrace: use the new kbuild CFLAGS_REMOVE for x86/kernel directory Content-Disposition: inline; filename=ftrace-cflags-remove-x86.patch Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Ingo Molnar Cc: David Miller , linux-kernel@vger.kernel.org, pq@iki.fi, proski@gnu.org, sandmann@redhat.com, a.p.zijlstra@chello.nl, linux-kbuild@vger.kernel.org, zippel@linux-m68k.org, Steven Rostedt This patch removes the Makefile turd and uses the nice CFLAGS_REMOVE macro in the x86/kernel directory. Signed-off-by: Steven Rostedt --- arch/x86/kernel/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) Index: linux-sched-devel.git/arch/x86/kernel/Makefile =================================================================== --- linux-sched-devel.git.orig/arch/x86/kernel/Makefile 2008-05-14 18:12:21.000000000 -0700 +++ linux-sched-devel.git/arch/x86/kernel/Makefile 2008-05-14 18:24:43.000000000 -0700 @@ -8,10 +8,9 @@ CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) ifdef CONFIG_FTRACE # Do not profile debug utilities -ORIG_CFLAGS := $(KBUILD_CFLAGS) -KBUILD_CFLAGS = $(if $(filter-out tsc_64 tsc_32 rtc,$(basename $(notdir $@))), \ - $(ORIG_CFLAGS), \ - $(subst -pg,,$(ORIG_CFLAGS))) +CFLAGS_REMOVE_tsc_64.o = -pg +CFLAGS_REMOVE_tsc_32.o = -pg +CFLAGS_REMOVE_rtc.o = -pg endif # --