[patch V2 22/29] x86/irq/32: Make irq stack a character array

From: Thomas Gleixner
Date: Fri Apr 05 2019 - 11:12:11 EST


There is no reason to have an u32 array in struct irq_stack. The only
purpose of the array is to size the struct properly.

Preparatory change for sharing struct irq_stack with 64-bit.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
arch/x86/include/asm/processor.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -422,7 +422,7 @@ DECLARE_PER_CPU_ALIGNED(struct stack_can
* per-CPU IRQ handling stacks
*/
struct irq_stack {
- u32 stack[IRQ_STACK_SIZE / sizeof(u32)];
+ char stack[IRQ_STACK_SIZE];
} __aligned(IRQ_STACK_SIZE);

DECLARE_PER_CPU(struct irq_stack *, hardirq_stack);