Skip to content

Commit 6c66bb6

Browse files
arndbwilldeacon
authored andcommitted
arm64: move smp_send_stop() cpu mask off stack
For really large values of CONFIG_NR_CPUS, a CPU mask value should not be put on the stack: arch/arm64/kernel/smp.c:1188:1: error: the frame size of 8544 bytes is larger than 1536 bytes [-Werror=frame-larger-than=] This could be achieved using alloc_cpumask_var(), which makes it depend on CONFIG_CPUMASK_OFFSTACK, but as this function is already serialized and can only run on one CPU, making the variable 'static' is easier. Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 0d1c86b commit 6c66bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ static inline unsigned int num_other_online_cpus(void)
11431143
void smp_send_stop(void)
11441144
{
11451145
static unsigned long stop_in_progress;
1146-
cpumask_t mask;
1146+
static cpumask_t mask;
11471147
unsigned long timeout;
11481148

11491149
/*

0 commit comments

Comments
 (0)