From 072de836f53be56a70cecf70b43ae43b7ce17376 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 10:08:36 +0000
Subject: [PATCH] mk-rootfs.sh
---
kernel/arch/sh/kernel/stacktrace.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/kernel/arch/sh/kernel/stacktrace.c b/kernel/arch/sh/kernel/stacktrace.c
index 7a73d27..daf0b53 100644
--- a/kernel/arch/sh/kernel/stacktrace.c
+++ b/kernel/arch/sh/kernel/stacktrace.c
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* arch/sh/kernel/stacktrace.c
*
* Stack trace management functions
*
* Copyright (C) 2006 - 2008 Paul Mundt
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
*/
#include <linux/sched.h>
#include <linux/sched/debug.h>
@@ -17,11 +14,6 @@
#include <asm/unwinder.h>
#include <asm/ptrace.h>
#include <asm/stacktrace.h>
-
-static int save_stack_stack(void *data, char *name)
-{
- return 0;
-}
/*
* Save stack-backtrace addresses into a stack_trace buffer.
@@ -43,7 +35,6 @@
}
static const struct stacktrace_ops save_stack_ops = {
- .stack = save_stack_stack,
.address = save_stack_address,
};
@@ -52,8 +43,6 @@
unsigned long *sp = (unsigned long *)current_stack_pointer;
unwind_stack(current, NULL, sp, &save_stack_ops, trace);
- if (trace->nr_entries < trace->max_entries)
- trace->entries[trace->nr_entries++] = ULONG_MAX;
}
EXPORT_SYMBOL_GPL(save_stack_trace);
@@ -78,7 +67,6 @@
}
static const struct stacktrace_ops save_stack_ops_nosched = {
- .stack = save_stack_stack,
.address = save_stack_address_nosched,
};
@@ -87,7 +75,5 @@
unsigned long *sp = (unsigned long *)tsk->thread.sp;
unwind_stack(current, NULL, sp, &save_stack_ops_nosched, trace);
- if (trace->nr_entries < trace->max_entries)
- trace->entries[trace->nr_entries++] = ULONG_MAX;
}
EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
--
Gitblit v1.6.2