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 <dave@dtucker.co.uk>
pull/310/head
Dave Tucker 2 years ago
parent 7f6da53c34
commit 218d4842d6

@ -116,7 +116,7 @@ impl<T> FromPtRegs for *const T {
}
}
#[cfg(bpf_target_arch = "armv7")]
#[cfg(bpf_target_arch = "arm")]
impl<T> FromPtRegs for *const T {
fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> {
if n <= 6 {
@ -165,7 +165,7 @@ impl<T> FromPtRegs for *mut T {
}
}
#[cfg(bpf_target_arch = "armv7")]
#[cfg(bpf_target_arch = "arm")]
impl<T> FromPtRegs for *mut T {
fn from_argument(ctx: &pt_regs, n: usize) -> Option<Self> {
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<Self> {
if n <= 6 {

Loading…
Cancel
Save