[4/6] inet: annotate ip6r0_addr with __decl_is_flex_array

Message ID 20230710150454.5490-5-cristian@rodriguez.im
State New
Headers
Series Support use of -fstrict-flex-arrays in user code |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Testing passed

Commit Message

Cristian Rodríguez July 10, 2023, 3:04 p.m. UTC
  Signed-off-by: Cristian Rodríguez <cristian@rodriguez.im>
---
 inet/netinet/ip6.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/inet/netinet/ip6.h b/inet/netinet/ip6.h
index feb66a15b9..24a96bac43 100644
--- a/inet/netinet/ip6.h
+++ b/inet/netinet/ip6.h
@@ -89,7 +89,7 @@  struct ip6_rthdr0
     uint8_t  ip6r0_reserved;	/* reserved field */
     uint8_t  ip6r0_slmap[3];	/* strict/loose bit map */
     /* followed by up to 127 struct in6_addr */
-    struct in6_addr ip6r0_addr[0];
+    struct in6_addr ip6r0_addr[0] __decl_is_flex_array;
   };
 
 /* Fragment header */