Skip to content

Commit 4805a13

Browse files
KatrinJochenhuacai
authored andcommitted
LoongArch: Use flexible-array member instead of zero-length array
Eliminate the following coccicheck warning: ./arch/loongarch/include/asm/ptrace.h:32:15-21: WARNING use flexible-array member instead Reviewed-by: WANG Xuerui <[email protected]> Signed-off-by: Yushan Zhou <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent b40fa75 commit 4805a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/loongarch/include/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct pt_regs {
2929
unsigned long csr_euen;
3030
unsigned long csr_ecfg;
3131
unsigned long csr_estat;
32-
unsigned long __last[0];
32+
unsigned long __last[];
3333
} __aligned(8);
3434

3535
static inline int regs_irqs_disabled(struct pt_regs *regs)

0 commit comments

Comments
 (0)