Skip to content
Snippets Groups Projects
Commit 4805a13d authored by Yushan Zhou's avatar Yushan Zhou Committed by Huacai Chen
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment