From 2f445c70b7b513d6c8a5efc1a188e31d5085b369 Mon Sep 17 00:00:00 2001 From: Jack May Date: Fri, 20 May 2022 14:05:54 -0700 Subject: [PATCH] fix test aligned (#25419) --- programs/bpf_loader/src/syscalls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/bpf_loader/src/syscalls.rs b/programs/bpf_loader/src/syscalls.rs index 7d48435d2a..1ab3ef705e 100644 --- a/programs/bpf_loader/src/syscalls.rs +++ b/programs/bpf_loader/src/syscalls.rs @@ -4469,7 +4469,7 @@ mod tests { }; let mut result: Result> = Ok(0); syscall.call( - size_of::() as u64, + size_of::() as u64, 0, 0, 0, @@ -4480,7 +4480,7 @@ mod tests { let address = result.unwrap(); assert_ne!(address, 0); assert_eq!( - (address as *const u8 as usize).wrapping_rem(align_of::()), + (address as *const u8 as usize).wrapping_rem(align_of::()), 0 ); }