From 3032bd084a9f55b7828f5c8096213e5b8c71cb56 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 22 Jun 2023 10:21:03 +0000 Subject: [PATCH] Revert "neighbour: Replace zero-length array with flexible-array member" This reverts commit 314713ff4c9bf10392e1c6ce274cad7ab107b666 which is commit 08ca27d027c238ed3f9b9968d349cebde44d99a6 upstream. It breaks the CRC generation of symbols, and doesn't do any functional changes, so is safe to revert. Bug: 161946584 Change-Id: I26157e0e928e2b6d60e0acafc892efdad13c12b4 Signed-off-by: Greg Kroah-Hartman --- include/net/neighbour.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 28375e40b72d..8df4a736c495 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -174,7 +174,7 @@ struct pneigh_entry { struct net_device *dev; u8 flags; u8 protocol; - u8 key[]; + u8 key[0]; }; /*