]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
xtensa: Remove zero-length alignment array
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 9 Dec 2024 11:08:56 +0000 (12:08 +0100)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 9 Dec 2024 11:54:54 +0000 (03:54 -0800)
Align the whole struct to 16 bytes instead of using a zero-length
alignment array.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Message-Id: <20241209110856.40132-3-thorsten.blum@linux.dev>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/processor.h

index 7ed1a2085bd72883025c7de7d0d028ab077cc56c..47b5df86ab5c5d6a54f3717091ddd3ff093ca0de 100644 (file)
@@ -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.