All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Julian Braha" <julianbraha@gmail.com>
Cc: linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH] LoongArch: cleanup dead static ftrace files
Date: Thu, 03 Dec 2026 19:51:37 +0000	[thread overview]
Message-ID: <sashiko-outbox-248562@kernel.org> (raw)
In-Reply-To: <20261203193302.2572186-1-julianbraha@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] LoongArch: ftrace: dead static ftrace declarations left in
  asm/ftrace.h
--

commit 7834de5ac69b851add622cbbf30254eeb3430016
Author: Julian Braha <julianbraha@gmail.com>

LoongArch: cleanup dead static ftrace files

This commit removes arch/loongarch/kernel/ftrace.c,
arch/loongarch/kernel/mcount.S, and the unreachable !CONFIG_DYNAMIC_FTRACE
branch in arch/loongarch/kernel/Makefile now that CONFIG_DYNAMIC_FTRACE is
always enabled whenever CONFIG_FUNCTION_TRACER is selected.

> diff --git a/arch/loongarch/kernel/Makefile b/arch/loongarch/kernel/Makefile
> index 6260c15adabad..afc2c3dc0f1ec 100644
> --- a/arch/loongarch/kernel/Makefile
> +++ b/arch/loongarch/kernel/Makefile
> @@ -27,13 +27,8 @@ CFLAGS_traps.o		+= $(call cc-disable-warning, override-init)
>  CFLAGS_perf_event.o	+= $(call cc-disable-warning, override-init)
>  
>  ifdef CONFIG_FUNCTION_TRACER
> -  ifndef CONFIG_DYNAMIC_FTRACE
> -    obj-y += mcount.o ftrace.o
> -    CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
> -  else
> -    obj-y += mcount_dyn.o ftrace_dyn.o
> -    CFLAGS_REMOVE_ftrace_dyn.o = $(CC_FLAGS_FTRACE)
> -  endif
> +  obj-y += mcount_dyn.o ftrace_dyn.o
> +  CFLAGS_REMOVE_ftrace_dyn.o = $(CC_FLAGS_FTRACE)
>    CFLAGS_REMOVE_inst.o = $(CC_FLAGS_FTRACE)
>    CFLAGS_REMOVE_time.o = $(CC_FLAGS_FTRACE)
>    CFLAGS_REMOVE_perf_event.o = $(CC_FLAGS_FTRACE)

[Severity: Low]
Should the unreachable #ifndef CONFIG_DYNAMIC_FTRACE branch in
arch/loongarch/include/asm/ftrace.h also be removed?  It still defines mcount
as _mcount and declares _mcount() and the three-argument
prepare_ftrace_return(), whose only definitions were deleted with mcount.S
and ftrace.c.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203193302.2572186-1-julianbraha@gmail.com?part=1

  reply	other threads:[~2026-12-03 19:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 19:33 [PATCH] LoongArch: cleanup dead static ftrace files Julian Braha
2026-12-03 19:51 ` sashiko-bot [this message]
2026-12-04  3:02 ` Jinyang He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-248562@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=julianbraha@gmail.com \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.