From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796327498; b=VC+H/hEkO2G5DKMCY6HUKGWtbUd4xbFqy56mQk/K6ZH8Io6fnAv2WHnFQx30WORo5P8M fEpM3BWATGh+dekweVY1U6tJDhM783+3R74MdCmwfdq0nckY2gRskdkVExWbzdzKdmGTc RbjT9o6+L+3FH9w94j5ycSadS15L4Jj7E2YhxDzRa1IBEqb1JskdTJzfthXqgLwLEyEx9 VeIPqw3HR74MTj2X4Rn7o2ns1Azj43oQx7CoKTrA8vT9EFrByFwQrfS+99OT81ToC9WQY qfC67eCR3acaG+WUKuZiXZGTBiPdbUYpt7t/inRAlPXt2UgaCW3Go1zEyxiMZEQyI8A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796327498; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=g33rtUBG3ip34P1LPnGVas2Z2DjPoDpchstQrReGRe8=; b=XYDWQJh6FmxzhOpw9T32ROsNGjNrTX+jE9EykTuqt0Mn1GPt1hJU3vNShWYlQE8SyWMt aME6iHStyICFx4y174Smj4/VoT/vCZoAn+BYYrk6ToWOcGEy9RhNJxALsKFsFidNK7rCX b9mJq6kHy32dGI/Uff8kp7XqbNaLqRs2TxXW/er5a2L6LFcZuXHo8bHM9R41L8Eq1435q 5Y3GXHszwHRuQQ1MHoKcxVeB48SRlk6h5cHqdXP1iAtOvJVsLGbwQLJKwaNfsUmKzfMf5 gTrDdgpqWWcDP+ccc8pyHNWr3RyZNJoOx3rJuhikwBIjgYB2Vig/SkeT/cChnXbfNRg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BTdFx3Vd; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C28BE606A322 for ; Thu, 3 Dec 2026 19:51:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BTdFx3Vd Received: by smtp.kernel.org (Postfix) with ESMTPSA id 475121F000CE; Thu, 3 Dec 2026 19:51:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796327498; bh=g33rtUBG3ip34P1LPnGVas2Z2DjPoDpchstQrReGRe8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=BTdFx3VdUtTwOp0yqhmLYO9nKhc9Ij8j/HDL0WjlEYXKNUbCz3oCfiHMFLA2U7QNB IRO7MJkZa6hMG2C3QMMyNufVAjiqI7A599gZPt524MMDGMZTRFnnKFq1+8Zk/0UcRq jQ1YDBHZbfpSe3khhUkO1+0VOtWp+6YEtQjXngtlwsMbtXMS4IU/puiOKOFmG8DC+n 0d5UxfZd29zFfz6D2x3SX8WV+JDMAkKs0LABBEyZpWtDctwmCitV0VVwvEYzbrrYsz QjC+7J29nBbWWS8ReK8qT8L/jyP4nuI662711ztd83xSG3a4yFKty0I5Z5NI7CLVrg irR5MRLGTzwXQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] LoongArch: cleanup dead static ftrace files Reply-To: sashiko-reviews@lists.linux.dev To: "Julian Braha" Cc: linux-trace-kernel@vger.kernel.org In-Reply-To: <20261203193302.2572186-1-julianbraha@gmail.com> References: <20261203193302.2572186-1-julianbraha@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 19:51:37 +0000 X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/Makef= ile > index 6260c15adabad..afc2c3dc0f1ec 100644 > --- a/arch/loongarch/kernel/Makefile > +++ b/arch/loongarch/kernel/Makefile > @@ -27,13 +27,8 @@ CFLAGS_traps.o +=3D $(call cc-disable-warning, overri= de-init) > CFLAGS_perf_event.o +=3D $(call cc-disable-warning, override-init) > =20 > ifdef CONFIG_FUNCTION_TRACER > - ifndef CONFIG_DYNAMIC_FTRACE > - obj-y +=3D mcount.o ftrace.o > - CFLAGS_REMOVE_ftrace.o =3D $(CC_FLAGS_FTRACE) > - else > - obj-y +=3D mcount_dyn.o ftrace_dyn.o > - CFLAGS_REMOVE_ftrace_dyn.o =3D $(CC_FLAGS_FTRACE) > - endif > + obj-y +=3D mcount_dyn.o ftrace_dyn.o > + CFLAGS_REMOVE_ftrace_dyn.o =3D $(CC_FLAGS_FTRACE) > CFLAGS_REMOVE_inst.o =3D $(CC_FLAGS_FTRACE) > CFLAGS_REMOVE_time.o =3D $(CC_FLAGS_FTRACE) > CFLAGS_REMOVE_perf_event.o =3D $(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 mcou= nt as _mcount and declares _mcount() and the three-argument prepare_ftrace_return(), whose only definitions were deleted with mcount.S and ftrace.c. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203193302.2572= 186-1-julianbraha@gmail.com?part=3D1