[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251021154813.4b77822a@gandalf.local.home>
Date: Tue, 21 Oct 2025 15:48:13 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Nicolas Schier <nsc@...nel.org>
Cc: Steven Rostedt <rostedt@...nel.org>, Nathan Chancellor
<nathan@...nel.org>, linux-kernel@...r.kernel.org,
linux-trace-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org, Masami
Hiramatsu <mhiramat@...nel.org>, Mark Rutland <mark.rutland@....com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>, Andrew Morton
<akpm@...ux-foundation.org>, Arnd Bergmann <arnd@...db.de>, Masahiro Yamada
<masahiroy@...nel.org>, Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Catalin Marinas <catalin.marinas@....com>, Linus Torvalds
<torvalds@...ux-foundation.org>, Randy Dunlap <rdunlap@...radead.org>,
Stephen Rothwell <sfr@...b.auug.org.au>
Subject: Re: [PATCH v9 4/4] tracing: Add warnings for unused tracepoints for
modules
On Fri, 17 Oct 2025 22:22:32 +0200
Nicolas Schier <nsc@...nel.org> wrote:
> On Wed, Oct 15, 2025 at 04:19:28PM -0700, Nathan Chancellor wrote:
> > Hi Steve,
> >
> > On Wed, Oct 15, 2025 at 04:38:46PM -0400, Steven Rostedt wrote:
> > > diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal
> > > index 542ba462ed3e..6f909979af91 100644
> > > --- a/scripts/Makefile.modfinal
> > > +++ b/scripts/Makefile.modfinal
> > > @@ -28,6 +28,12 @@ ccflags-remove-y := $(CC_FLAGS_CFI)
> > > .module-common.o: $(srctree)/scripts/module-common.c FORCE
> > > $(call if_changed_rule,cc_o_c)
> > >
> > > +ifneq ($(WARN_ON_UNUSED_TRACEPOINTS),"")
> >
> > Drop the "", nowhere else in Kbuild appears to do this.
> >
> > > +cmd_check_tracepoint = ${objtree}/scripts/tracepoint-update $<;
> >
> > Please use $(objtree) to be consistent with the rest of Kbuild.
> >
> > > +else
> > > +cmd_check_tracepoint =
> > > +endif
>
> The else part is not required, cp. definition of e.g. cmd_checkdoc in
> scripts/Makefile.build.
Thanks, will do.
-- Steve
Powered by blists - more mailing lists