Commit dbef257a authored by Thorsten Blum's avatar Thorsten Blum Committed by Max Filippov
Browse files

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: default avatarThorsten Blum <thorsten.blum@linux.dev>
Message-Id: <20250219114759.20110-2-thorsten.blum@linux.dev>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent ffd294d3
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -72,13 +72,10 @@ struct pt_regs {
	/* Additional configurable registers that are used by the compiler. */
	xtregs_opt_t xtregs_opt;

	/* Make sure the areg field is 16 bytes aligned. */
	int align[0] __attribute__ ((aligned(16)));

	/* current register frame.
	 * Note: The ESF for kernel exceptions ends after 16 registers!
	 */
	unsigned long areg[XCHAL_NUM_AREGS];
	unsigned long areg[XCHAL_NUM_AREGS] __aligned(16);
};

# define arch_has_single_step()	(1)