VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Gustavo A. R. Silva <gustavo@embeddedor.com> 2020-02-11 14:53:56 -0600 committer: David S. Miller <davem@davemloft.net> 2020-02-16 18:33:00 -0800 commit: 1f4c51de3361f3d9223f7662b9567844e9fb7ca8 parent: d71151a39c97d551378a441c089508b0bca48210
Commit Summary:
lib: objagg: Replace zero-length arrays with flexible-array member
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/lib/objagg.c b/lib/objagg.c
index 55621fb82e0a..5e1676ccdadd 100644
--- a/lib/objagg.c
+++ b/lib/objagg.c
@@ -28,7 +28,7 @@ struct objagg_hints_node {
 	struct objagg_hints_node *parent;
 	unsigned int root_id;
 	struct objagg_obj_stats_info stats_info;
-	unsigned long obj[0];
+	unsigned long obj[];
 };
 
 static struct objagg_hints_node *
@@ -66,7 +66,7 @@ struct objagg_obj {
 				* including nested objects
 				*/
 	struct objagg_obj_stats stats;
-	unsigned long obj[0];
+	unsigned long obj[];
 };
 
 static unsigned int objagg_obj_ref_inc(struct objagg_obj *objagg_obj)