Skip to content

Commit 595a121

Browse files
committed
Merge branch 'for-next/stacks' into for-next/core
* for-next/stacks: arm64: move on_thread_stack() to <asm/stacktrace.h> arm64: remove current_top_of_stack()
2 parents 32b4824 + 4585a93 commit 595a121

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

arch/arm64/include/asm/processor.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -396,18 +396,5 @@ long get_tagged_addr_ctrl(struct task_struct *task);
396396
#define GET_TAGGED_ADDR_CTRL() get_tagged_addr_ctrl(current)
397397
#endif
398398

399-
/*
400-
* For CONFIG_GCC_PLUGIN_STACKLEAK
401-
*
402-
* These need to be macros because otherwise we get stuck in a nightmare
403-
* of header definitions for the use of task_stack_page.
404-
*/
405-
406-
/*
407-
* The top of the current task's task stack
408-
*/
409-
#define current_top_of_stack() ((unsigned long)current->stack + THREAD_SIZE)
410-
#define on_thread_stack() (on_task_stack(current, current_stack_pointer, 1))
411-
412399
#endif /* __ASSEMBLY__ */
413400
#endif /* __ASM_PROCESSOR_H */

arch/arm64/include/asm/stacktrace.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ static inline bool on_task_stack(const struct task_struct *tsk,
5757
return stackinfo_on_stack(&info, sp, size);
5858
}
5959

60+
#define on_thread_stack() (on_task_stack(current, current_stack_pointer, 1))
61+
6062
#ifdef CONFIG_VMAP_STACK
6163
DECLARE_PER_CPU(unsigned long [OVERFLOW_STACK_SIZE/sizeof(long)], overflow_stack);
6264

arch/arm64/kernel/irq.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@
1010
* Copyright (C) 2012 ARM Ltd.
1111
*/
1212

13-
#include <linux/irq.h>
14-
#include <linux/memory.h>
15-
#include <linux/smp.h>
1613
#include <linux/hardirq.h>
1714
#include <linux/init.h>
15+
#include <linux/irq.h>
1816
#include <linux/irqchip.h>
1917
#include <linux/kprobes.h>
18+
#include <linux/memory.h>
2019
#include <linux/scs.h>
2120
#include <linux/seq_file.h>
21+
#include <linux/smp.h>
2222
#include <linux/vmalloc.h>
2323
#include <asm/daifflags.h>
2424
#include <asm/exception.h>
25-
#include <asm/vmap_stack.h>
2625
#include <asm/softirq_stack.h>
26+
#include <asm/stacktrace.h>
27+
#include <asm/vmap_stack.h>
2728

2829
/* Only access this in an NMI enter/exit */
2930
DEFINE_PER_CPU(struct nmi_ctx, nmi_contexts);

0 commit comments

Comments
 (0)