| 1 | diff --git a/arch/loongarch64/bits/signal.h b/arch/loongarch64/bits/signal.h |
| 2 | index 1487c0d..2725276 100644 |
| 3 | --- a/arch/loongarch64/bits/signal.h |
| 4 | +++ b/arch/loongarch64/bits/signal.h |
| 5 | @@ -32,7 +32,7 @@ struct sigcontext { |
| 6 | unsigned long sc_pc; |
| 7 | unsigned long sc_regs[32]; |
| 8 | unsigned sc_flags; |
| 9 | - unsigned long sc_extcontext[] __attribute__((__aligned__(16))); |
| 10 | + unsigned long sc_extcontext[0] __attribute__((__aligned__(16))); |
| 11 | }; |
| 12 | |
| 13 | #define CONTEXT_INFO_ALIGN 16 |
| 14 | @@ -82,7 +82,7 @@ typedef struct { |
| 15 | unsigned long __pc; |
| 16 | unsigned long __gregs[32]; |
| 17 | unsigned __flags; |
| 18 | - unsigned long __extcontext[] __attribute__((__aligned__(16))); |
| 19 | + unsigned long __extcontext[0] __attribute__((__aligned__(16))); |
| 20 | } mcontext_t; |
| 21 | |
| 22 | struct sigaltstack { |
| 23 | |