On Thu, Oct 24, 2019 at 5:04 AM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > You can remove a CFLAGS for a whole directory. lib, kernel/trace and > others do this. Look at kernel/trace/Makefile, we have: > > ORIG_CFLAGS := $(KBUILD_CFLAGS) > KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS)) That definitely looks less invasive in this case than adding ccflags-remove-y, since we only really need this for one directory. I'll use this in v2. Thanks, Steven. Sami