* [PATCH] arm64: Remove assertion on CONFIG_VMAP_STACK
@ 2025-11-03 15:23 Dawei Li
2025-11-07 14:27 ` Will Deacon
2025-11-07 20:52 ` Catalin Marinas
0 siblings, 2 replies; 3+ messages in thread
From: Dawei Li @ 2025-11-03 15:23 UTC (permalink / raw)
To: catalin.marinas, will
Cc: mark.rutland, linux-arm-kernel, linux-kernel, dawei.li,
set_pte_at
CONFIG_VMAP_STACK is selected by arm64 arch unconditionly since commit
ef6861b8e6dd ("arm64: Mandate VMAP_STACK").
Remove the redundant assertion and headers.
Signed-off-by: Dawei Li <dawei.li@linux.dev>
---
arch/arm64/include/asm/vmap_stack.h | 4 ----
arch/arm64/kernel/sdei.c | 4 ----
2 files changed, 8 deletions(-)
diff --git a/arch/arm64/include/asm/vmap_stack.h b/arch/arm64/include/asm/vmap_stack.h
index 20873099c035..75daee1a07e9 100644
--- a/arch/arm64/include/asm/vmap_stack.h
+++ b/arch/arm64/include/asm/vmap_stack.h
@@ -3,9 +3,7 @@
#ifndef __ASM_VMAP_STACK_H
#define __ASM_VMAP_STACK_H
-#include <linux/bug.h>
#include <linux/gfp.h>
-#include <linux/kconfig.h>
#include <linux/vmalloc.h>
#include <linux/pgtable.h>
#include <asm/memory.h>
@@ -19,8 +17,6 @@ static inline unsigned long *arch_alloc_vmap_stack(size_t stack_size, int node)
{
void *p;
- BUILD_BUG_ON(!IS_ENABLED(CONFIG_VMAP_STACK));
-
p = __vmalloc_node(stack_size, THREAD_ALIGN, THREADINFO_GFP, node,
__builtin_return_address(0));
return kasan_reset_tag(p);
diff --git a/arch/arm64/kernel/sdei.c b/arch/arm64/kernel/sdei.c
index 95169f7b6531..213ac72ce4fd 100644
--- a/arch/arm64/kernel/sdei.c
+++ b/arch/arm64/kernel/sdei.c
@@ -63,8 +63,6 @@ static void free_sdei_stacks(void)
{
int cpu;
- BUILD_BUG_ON(!IS_ENABLED(CONFIG_VMAP_STACK));
-
for_each_possible_cpu(cpu) {
_free_sdei_stack(&sdei_stack_normal_ptr, cpu);
_free_sdei_stack(&sdei_stack_critical_ptr, cpu);
@@ -88,8 +86,6 @@ static int init_sdei_stacks(void)
int cpu;
int err = 0;
- BUILD_BUG_ON(!IS_ENABLED(CONFIG_VMAP_STACK));
-
for_each_possible_cpu(cpu) {
err = _init_sdei_stack(&sdei_stack_normal_ptr, cpu);
if (err)
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: Remove assertion on CONFIG_VMAP_STACK
2025-11-03 15:23 [PATCH] arm64: Remove assertion on CONFIG_VMAP_STACK Dawei Li
@ 2025-11-07 14:27 ` Will Deacon
2025-11-07 20:52 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2025-11-07 14:27 UTC (permalink / raw)
To: Dawei Li
Cc: catalin.marinas, mark.rutland, linux-arm-kernel, linux-kernel,
set_pte_at
On Mon, Nov 03, 2025 at 11:23:45PM +0800, Dawei Li wrote:
> CONFIG_VMAP_STACK is selected by arm64 arch unconditionly since commit
> ef6861b8e6dd ("arm64: Mandate VMAP_STACK").
>
> Remove the redundant assertion and headers.
>
> Signed-off-by: Dawei Li <dawei.li@linux.dev>
> ---
> arch/arm64/include/asm/vmap_stack.h | 4 ----
> arch/arm64/kernel/sdei.c | 4 ----
> 2 files changed, 8 deletions(-)
Acked-by: Will Deacon <will@kernel.org>
Will
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: Remove assertion on CONFIG_VMAP_STACK
2025-11-03 15:23 [PATCH] arm64: Remove assertion on CONFIG_VMAP_STACK Dawei Li
2025-11-07 14:27 ` Will Deacon
@ 2025-11-07 20:52 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2025-11-07 20:52 UTC (permalink / raw)
To: will, Dawei Li; +Cc: mark.rutland, linux-arm-kernel, linux-kernel, set_pte_at
On Mon, 03 Nov 2025 23:23:45 +0800, Dawei Li wrote:
> CONFIG_VMAP_STACK is selected by arm64 arch unconditionly since commit
> ef6861b8e6dd ("arm64: Mandate VMAP_STACK").
>
> Remove the redundant assertion and headers.
>
>
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: Remove assertion on CONFIG_VMAP_STACK
https://git.kernel.org/arm64/c/4002068508ca
--
Catalin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-11-07 20:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-03 15:23 [PATCH] arm64: Remove assertion on CONFIG_VMAP_STACK Dawei Li
2025-11-07 14:27 ` Will Deacon
2025-11-07 20:52 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox