From 218d4842d61bd6521d250602ca9a9503c9bbffeb Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Tue, 7 Jun 2022 16:21:58 +0100 Subject: [PATCH] bpf: Be consistent with arm target_arch This is `arm` in bindings but `armv7` in args. Let's use `arm` Signed-off-by: Dave Tucker --- bpf/aya-bpf/src/args.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bpf/aya-bpf/src/args.rs b/bpf/aya-bpf/src/args.rs index db361bc8..a4599b44 100644 --- a/bpf/aya-bpf/src/args.rs +++ b/bpf/aya-bpf/src/args.rs @@ -116,7 +116,7 @@ impl FromPtRegs for *const T { } } -#[cfg(bpf_target_arch = "armv7")] +#[cfg(bpf_target_arch = "arm")] impl FromPtRegs for *const T { fn from_argument(ctx: &pt_regs, n: usize) -> Option { if n <= 6 { @@ -165,7 +165,7 @@ impl FromPtRegs for *mut T { } } -#[cfg(bpf_target_arch = "armv7")] +#[cfg(bpf_target_arch = "arm")] impl FromPtRegs for *mut T { fn from_argument(ctx: &pt_regs, n: usize) -> Option { if n <= 6 { @@ -217,7 +217,7 @@ macro_rules! impl_from_pt_regs { } } - #[cfg(bpf_target_arch = "armv7")] + #[cfg(bpf_target_arch = "arm")] impl FromPtRegs for $type { fn from_argument(ctx: &pt_regs, n: usize) -> Option { if n <= 6 {