Skip to content

Commit 3a67800

Browse files
Samuel OrtizSebastien Boeuf
Samuel Ortiz
authored and
Sebastien Boeuf
committed
x86: Derive serde traits for kvm_cpuid_entry
Signed-off-by: Samuel Ortiz <[email protected]>
1 parent ed73045 commit 3a67800

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/x86/bindings_v4_20_0.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,6 +2234,7 @@ fn bindgen_test_layout_kvm_msr_list() {
22342234
}
22352235
#[repr(C)]
22362236
#[derive(Debug, Default, Copy, Clone, PartialEq)]
2237+
#[cfg_attr(feature = "with-serde", derive(Deserialize, Serialize))]
22372238
pub struct kvm_cpuid_entry {
22382239
pub function: __u32,
22392240
pub eax: __u32,
@@ -2367,6 +2368,7 @@ fn bindgen_test_layout_kvm_cpuid() {
23672368
}
23682369
#[repr(C)]
23692370
#[derive(Debug, Default, Copy, Clone, PartialEq)]
2371+
#[cfg_attr(feature = "with-serde", derive(Deserialize, Serialize))]
23702372
pub struct kvm_cpuid_entry2 {
23712373
pub function: __u32,
23722374
pub index: __u32,

0 commit comments

Comments
 (0)