提交 4805a13d 编写于 作者: Y Yushan Zhou 提交者: 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: NWANG Xuerui <git@xen0n.name>
Signed-off-by: NYushan Zhou <katrinzhou@tencent.com>
Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
上级 b40fa75e
...@@ -29,7 +29,7 @@ struct pt_regs { ...@@ -29,7 +29,7 @@ struct pt_regs {
unsigned long csr_euen; unsigned long csr_euen;
unsigned long csr_ecfg; unsigned long csr_ecfg;
unsigned long csr_estat; unsigned long csr_estat;
unsigned long __last[0]; unsigned long __last[];
} __aligned(8); } __aligned(8);
static inline int regs_irqs_disabled(struct pt_regs *regs) static inline int regs_irqs_disabled(struct pt_regs *regs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册