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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 99e487d commit 5055d82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)