Commit 4805a13d authored by Yushan Zhou's avatar Yushan Zhou Committed by Huacai Chen

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: default avatarWANG Xuerui <git@xen0n.name>
Signed-off-by: default avatarYushan Zhou <katrinzhou@tencent.com>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent b40fa75e
......@@ -29,7 +29,7 @@ struct pt_regs {
unsigned long csr_euen;
unsigned long csr_ecfg;
unsigned long csr_estat;
unsigned long __last[0];
unsigned long __last[];
} __aligned(8);
static inline int regs_irqs_disabled(struct pt_regs *regs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment