Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 7b1ddde

Browse files
andreeaflorescuSamuel Ortiz
authored andcommitted
fam_wrappers: simplify imports
Import bindings from x86::bindings so we don't need to have the same logic to exclude features twice (once in the x86/mod.rs and once in x86/fam_wrappers.rs). Signed-off-by: Andreea Florescu <fandree@amazon.com>
1 parent 2a32673 commit 7b1ddde

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/x86/fam_wrappers.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@
33

44
use vmm_sys_util::fam::{FamStruct, FamStructWrapper};
55

6-
#[cfg(feature = "kvm-v4_14_0")]
7-
use super::bindings_v4_14_0::*;
8-
9-
#[cfg(feature = "kvm-v4_20_0")]
10-
use super::bindings_v4_20_0::*;
11-
12-
#[cfg(all(not(feature = "kvm-v4_14_0"), not(feature = "kvm-v4_20_0")))]
13-
use super::bindings_v4_20_0::*;
6+
use x86::bindings::*;
147

158
/// Maximum number of CPUID entries that can be returned by a call to KVM ioctls.
169
///

0 commit comments

Comments
 (0)