VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Gustavo A. R. Silva <gustavo@embeddedor.com> 2020-04-06 20:10:06 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-04-07 10:43:43 -0700 commit: 51022f8715bbb365de8521a5b6a2fcf967ee76ca parent: 842ae1f52b44a4fa3e4e7e5dd61e8b53e8a09ece
Commit Summary:
lib/ts_kmp.c: replace zero-length array with flexible-array member
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/lib/ts_kmp.c b/lib/ts_kmp.c
index 94617e014b3a..c77a3d537f24 100644
--- a/lib/ts_kmp.c
+++ b/lib/ts_kmp.c
@@ -36,7 +36,7 @@ struct ts_kmp
 {
 	u8 *		pattern;
 	unsigned int	pattern_len;
-	unsigned int 	prefix_tbl[0];
+	unsigned int	prefix_tbl[];
 };
 
 static unsigned int kmp_find(struct ts_config *conf, struct ts_state *state)