summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/stacktrace/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/include/asm/stacktrace/common.h')
-rw-r--r--arch/arm64/include/asm/stacktrace/common.h28
1 files changed, 9 insertions, 19 deletions
diff --git a/arch/arm64/include/asm/stacktrace/common.h b/arch/arm64/include/asm/stacktrace/common.h
index 81c21378b1ac..3c3bda34bb87 100644
--- a/arch/arm64/include/asm/stacktrace/common.h
+++ b/arch/arm64/include/asm/stacktrace/common.h
@@ -65,6 +65,15 @@ struct unwind_state {
struct task_struct *task;
};
+static inline struct stack_info stackinfo_get_unknown(void)
+{
+ return (struct stack_info) {
+ .low = 0,
+ .high = 0,
+ .type = STACK_TYPE_UNKNOWN,
+ };
+}
+
static inline bool stackinfo_on_stack(const struct stack_info *info,
unsigned long sp, unsigned long size)
{
@@ -77,25 +86,6 @@ static inline bool stackinfo_on_stack(const struct stack_info *info,
return true;
}
-static inline bool on_stack(unsigned long sp, unsigned long size,
- unsigned long low, unsigned long high,
- enum stack_type type, struct stack_info *info)
-{
- struct stack_info tmp = {
- .low = low,
- .high = high,
- .type = type,
- };
-
- if (!stackinfo_on_stack(&tmp, sp, size))
- return false;
-
- if (info)
- *info = tmp;
-
- return true;
-}
-
static inline void unwind_init_common(struct unwind_state *state,
struct task_struct *task)
{