Skip to contentSkip to conversation

sched: Drop the never-defined $(PROFILING) from CFLAGS_core.o

PATCH New Hui Su 1 participant 1 message Oct 22 Scheduler

lore
Share & tools
lore

Hui Su

author
#0 lore raw

PATCH 1/1 sched: Drop the never-defined $(PROFILING) from CFLAGS_core.o

$(PROFILING) is not defined anywhere in the build system, so "CFLAGS_core.o := $(PROFILING) -fno-omit-frame-pointer" expands to just "-fno-omit-frame-pointer". The reference is left over from the days when the scheduler build rules lived in kernel/Makefile; the ftrace compiler options moved to CC_FLAGS_FTRACE in c0a80c0c27e5, and KBUILD_CFLAGS adds those to every object.

---
 kernel/sched/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/Makefile +1 -1
index b1f1a367034f..bd6f4e25e686 100644
@@ -22,7 +22,7 @@ ifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y)
 # me.  I suspect most platforms don't need this, but until we know that for sure
 # I turn this off for IA-64 only.  Andreas Schwab says it's also needed on m68k
 # to get a correct value for the wait-channel (WCHAN in ps). --davidm
-CFLAGS_core.o := $(PROFILING) -fno-omit-frame-pointer
+CFLAGS_core.o := -fno-omit-frame-pointer
 endif
 
 # Branch profiling isn't noinstr-safe