From 9e7939476e2a070e86952261f544e970db9ea1ed Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 3 Jun 2023 18:13:16 +0200 Subject: [PATCH] remove clippy warnings --- src/arch/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/mod.rs b/src/arch/mod.rs index 99d36505db..bfd1a5e974 100644 --- a/src/arch/mod.rs +++ b/src/arch/mod.rs @@ -63,6 +63,7 @@ pub use crate::arch::x86_64::kernel::{ pub use crate::arch::x86_64::*; /// Force strict CPU ordering, serializes load and store operations. +#[allow(dead_code)] #[cfg(target_arch = "aarch64")] #[inline(always)] pub(crate) fn memory_barrier() { @@ -73,6 +74,7 @@ pub(crate) fn memory_barrier() { } /// Force strict CPU ordering, serializes load and store operations. +#[allow(dead_code)] #[cfg(target_arch = "x86_64")] #[inline(always)] pub(crate) fn memory_barrier() {