]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2025 10:34:40 +0000 (11:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2025 10:34:40 +0000 (11:34 +0100)
added patches:
mips-ftrace-declare-ftrace_get_parent_ra_addr-as-static.patch

queue-5.15/mips-ftrace-declare-ftrace_get_parent_ra_addr-as-static.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/mips-ftrace-declare-ftrace_get_parent_ra_addr-as-static.patch b/queue-5.15/mips-ftrace-declare-ftrace_get_parent_ra_addr-as-static.patch
new file mode 100644 (file)
index 0000000..33aeb3e
--- /dev/null
@@ -0,0 +1,47 @@
+From ddd068d81445b17ac0bed084dfeb9e58b4df3ddd Mon Sep 17 00:00:00 2001
+From: WangYuli <wangyuli@uniontech.com>
+Date: Sat, 4 Jan 2025 22:47:08 +0800
+Subject: MIPS: ftrace: Declare ftrace_get_parent_ra_addr() as static
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: WangYuli <wangyuli@uniontech.com>
+
+commit ddd068d81445b17ac0bed084dfeb9e58b4df3ddd upstream.
+
+Declare ftrace_get_parent_ra_addr() as static to suppress clang
+compiler warning that 'no previous prototype'. This function is
+not intended to be called from other parts.
+
+Fix follow error with clang-19:
+
+arch/mips/kernel/ftrace.c:251:15: error: no previous prototype for function 'ftrace_get_parent_ra_addr' [-Werror,-Wmissing-prototypes]
+  251 | unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long
+      |               ^
+arch/mips/kernel/ftrace.c:251:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
+  251 | unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long
+      | ^
+      | static
+1 error generated.
+
+Signed-off-by: WangYuli <wangyuli@uniontech.com>
+Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
+Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
+Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/mips/kernel/ftrace.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/mips/kernel/ftrace.c
++++ b/arch/mips/kernel/ftrace.c
+@@ -248,7 +248,7 @@ int ftrace_disable_ftrace_graph_caller(v
+ #define S_R_SP        (0xafb0 << 16)  /* s{d,w} R, offset(sp) */
+ #define OFFSET_MASK   0xffff  /* stack offset range: 0 ~ PT_SIZE */
+-unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long
++static unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long
+               old_parent_ra, unsigned long parent_ra_addr, unsigned long fp)
+ {
+       unsigned long sp, ip, tmp;
index c85467411f830ee577a1003fd0c589d59521f105..4a918835e48b6f0e99c02f3fb4f13119effb6145 100644 (file)
@@ -332,3 +332,4 @@ misc-fastrpc-fix-registered-buffer-page-address.patch
 net-ncsi-wait-for-the-last-response-to-deselect-package-before-configuring-channel.patch
 net-phy-c45-tjaxx-add-delay-between-mdio-write-and-read-in-soft_reset.patch
 ptp-ensure-info-enable-callback-is-always-set.patch
+mips-ftrace-declare-ftrace_get_parent_ra_addr-as-static.patch