[PATCH] xtensa: Remove zero-length alignment array

From: Thorsten Blum
Date: Mon Dec 09 2024 - 06:13:35 EST


Align the whole struct to 16 bytes instead of using a zero-length
alignment array.

Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
---
arch/xtensa/include/asm/processor.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/xtensa/include/asm/processor.h b/arch/xtensa/include/asm/processor.h
index 7ed1a2085bd7..5c88c97abe4e 100644
--- a/arch/xtensa/include/asm/processor.h
+++ b/arch/xtensa/include/asm/processor.h
@@ -160,9 +160,7 @@ struct thread_struct {
struct perf_event *ptrace_bp[XCHAL_NUM_IBREAK];
struct perf_event *ptrace_wp[XCHAL_NUM_DBREAK];
#endif
- /* Make structure 16 bytes aligned. */
- int align[0] __attribute__ ((aligned(16)));
-};
+} __aligned(16);

/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
--
2.47.1