From 325f675273d9f20252674d56ce74ea8e74169806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Wed, 6 Sep 2023 23:50:47 +0000 Subject: [PATCH] fix a compile warning about out of order field init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://cs/h/prodkernel/kernel/upstream/torvalds/linux-2.6/+/master:tools/include/uapi/linux/bpf.h?l=1486 struct { /* anonymous struct used by BPF_PROG_TEST_RUN command */ __u32 prog_fd; __u32 retval; __u32 data_size_in; __u32 data_size_out; __aligned_u64 data_in; __aligned_u64 data_out; ... Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: I2c08b65bdcdbd7fb9872b6d4cbbf542fe28ef916 --- .../native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h b/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h index ba16d53cb7..13f7cb396c 100644 --- a/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h +++ b/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h @@ -175,8 +175,8 @@ inline int runProgram(const BPF_FD_TYPE prog_fd, const void* data, return bpf(BPF_PROG_RUN, { .test = { .prog_fd = BPF_FD_TO_U32(prog_fd), - .data_in = ptr_to_u64(data), .data_size_in = data_size, + .data_in = ptr_to_u64(data), }, }); }