From c89c95bc0bc220e3aee423a63628ace3e1538f43 Mon Sep 17 00:00:00 2001 From: arctic-alpaca <67190338+arctic-alpaca@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:09:43 +0100 Subject: [PATCH] tests: change AF_XDP test `PacketMap` repr to `C` --- test/integration-test/src/tests/xdp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration-test/src/tests/xdp.rs b/test/integration-test/src/tests/xdp.rs index 784ffe75..bd694287 100644 --- a/test/integration-test/src/tests/xdp.rs +++ b/test/integration-test/src/tests/xdp.rs @@ -28,7 +28,7 @@ fn af_xdp() { // So this needs to be page aligned. Pages are 4k on all mainstream architectures except for // Apple Silicon which uses 16k pages. So let's align on that for tests to run natively there. - #[repr(align(16384))] + #[repr(C, align(16384))] struct PacketMap(MaybeUninit<[u8; 4096]>); // Safety: don't access alloc down the line.