Skip to content

Commit dbef257

Browse files
tobluxjcmvbkbc
authored andcommitted
xtensa: ptrace: Remove zero-length alignment array
Use a compiler attribute to align the areg field 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 ffd294d commit dbef257

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/xtensa/include/asm/ptrace.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ struct pt_regs {
7272
/* Additional configurable registers that are used by the compiler. */
7373
xtregs_opt_t xtregs_opt;
7474

75-
/* Make sure the areg field is 16 bytes aligned. */
76-
int align[0] __attribute__ ((aligned(16)));
77-
7875
/* current register frame.
7976
* Note: The ESF for kernel exceptions ends after 16 registers!
8077
*/
81-
unsigned long areg[XCHAL_NUM_AREGS];
78+
unsigned long areg[XCHAL_NUM_AREGS] __aligned(16);
8279
};
8380

8481
# define arch_has_single_step() (1)

0 commit comments

Comments
 (0)