summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2023-09-06 23:50:47 +0000
committerMaciej Żenczykowski <maze@google.com>2023-09-06 23:51:37 +0000
commitac8feea6432ec19f92012e9917b48b14e0296cb4 (patch)
treef471e6f992ca5021d40ff68b02048093f8d69109
parentacc5324f22d1b6e222d22bce1a5565a5017a7c0b (diff)
downloadnet-ac8feea6432ec19f92012e9917b48b14e0296cb4.tar.gz
fix a compile warning about out of order field init
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 <maze@google.com> Change-Id: I2c08b65bdcdbd7fb9872b6d4cbbf542fe28ef916
-rw-r--r--common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h b/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h
index ba16d53c..13f7cb39 100644
--- a/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h
+++ b/common/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),
},
});
}