Skip to content

Commit dab20cc

Browse files
committed
fix: pass clippy
1 parent 7ba288e commit dab20cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vdso.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ where
255255
Ok(())
256256
}
257257

258+
#[cfg(not(target_arch = "x86_64"))]
258259
pub fn get_trampoline_addr(auxv: &[AuxEntry]) -> Option<usize> {
259260
let vdso_base = auxv
260261
.iter()
@@ -270,7 +271,6 @@ pub fn get_trampoline_addr(auxv: &[AuxEntry]) -> Option<usize> {
270271

271272
let mut sigreturn_offset: Option<usize> = None;
272273

273-
#[cfg(not(target_arch = "x86_64"))]
274274
unsafe {
275275
unsafe extern "C" {
276276
static vdso_start: u8;
@@ -293,3 +293,8 @@ pub fn get_trampoline_addr(auxv: &[AuxEntry]) -> Option<usize> {
293293
);
294294
Some(addr)
295295
}
296+
297+
#[cfg(target_arch = "x86_64")]
298+
pub fn get_trampoline_addr(_auxv: &[AuxEntry]) -> Option<usize> {
299+
None
300+
}

0 commit comments

Comments
 (0)