Skip to content

Commit 5055d82

Browse files
tobluxjcmvbkbc
authored andcommitted
xtensa: Remove zero-length alignment array
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>
1 parent 99e487d commit 5055d82

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

arch/xtensa/include/asm/processor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ struct thread_struct {
160160
struct perf_event *ptrace_bp[XCHAL_NUM_IBREAK];
161161
struct perf_event *ptrace_wp[XCHAL_NUM_DBREAK];
162162
#endif
163-
/* Make structure 16 bytes aligned. */
164-
int align[0] __attribute__ ((aligned(16)));
165-
};
163+
} __aligned(16);
166164

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

0 commit comments

Comments
 (0)