From 88cac13d7ca585796a933871b853127f009ebe32 Mon Sep 17 00:00:00 2001 From: fruffy Date: Wed, 1 May 2024 08:52:30 -0400 Subject: [PATCH] Try an inline declaration to fix Ubuntu 20.04 problems? --- testdata/extern_modules/extern-checksum-ebpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testdata/extern_modules/extern-checksum-ebpf.c b/testdata/extern_modules/extern-checksum-ebpf.c index a9e4cae419c..f59f50732d3 100644 --- a/testdata/extern_modules/extern-checksum-ebpf.c +++ b/testdata/extern_modules/extern-checksum-ebpf.c @@ -13,7 +13,7 @@ * @param iphdr Structure representing IP header. The IP header is generated by the P4 compiler and defined in test.h. * @return True if checksum is correct. */ -u8 verify_ipv4_checksum(const struct IPv4_h iphdr) +inline u8 verify_ipv4_checksum(const struct IPv4_h iphdr) { u8 correct = 0; u32 checksum = bpf_htons(((u16) iphdr.version << 12) | ((u16) iphdr.ihl << 8) | (u16) iphdr.diffserv);