Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <git@xen0n.name>
Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>

authored by

Yushan Zhou and committed by
Huacai Chen
4805a13d b40fa75e

+1 -1
+1 -1
arch/loongarch/include/asm/ptrace.h
··· 29 29 unsigned long csr_euen; 30 30 unsigned long csr_ecfg; 31 31 unsigned long csr_estat; 32 - unsigned long __last[0]; 32 + unsigned long __last[]; 33 33 } __aligned(8); 34 34 35 35 static inline int regs_irqs_disabled(struct pt_regs *regs)