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

Commit a9d780e

Browse files
dianpopaacatangiu
authored andcommitted
versionize: add versionize for arm types
Signed-off-by: Diana Popa <[email protected]>
1 parent 9b1dd38 commit a9d780e

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

src/arm/bindings_v4_20_0.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// SPDX-License-Identifier: Apache-2.0
33
/* automatically generated by rust-bindgen */
44

5+
use versionize::{VersionMap, Versionize, VersionizeResult};
6+
use versionize_derive::Versionize;
7+
58
#[repr(C)]
69
#[derive(Default)]
710
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
@@ -758,7 +761,7 @@ fn bindgen_test_layout_pt_regs() {
758761
);
759762
}
760763
#[repr(C)]
761-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
764+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
762765
pub struct kvm_regs {
763766
pub usr_regs: pt_regs,
764767
pub svc_regs: [::std::os::raw::c_ulong; 3usize],
@@ -4354,7 +4357,7 @@ fn bindgen_test_layout_kvm_vapic_addr() {
43544357
);
43554358
}
43564359
#[repr(C)]
4357-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
4360+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
43584361
pub struct kvm_mp_state {
43594362
pub mp_state: __u32,
43604363
}
@@ -6418,7 +6421,7 @@ fn bindgen_test_layout_kvm_reg_list() {
64186421
);
64196422
}
64206423
#[repr(C)]
6421-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
6424+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
64226425
pub struct kvm_one_reg {
64236426
pub id: __u64,
64246427
pub addr: __u64,

src/arm64/bindings_v4_20_0.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// SPDX-License-Identifier: Apache-2.0
33
/* automatically generated by rust-bindgen */
44

5+
use versionize::{VersionMap, Versionize, VersionizeResult};
6+
use versionize_derive::Versionize;
7+
58
#[repr(C)]
69
#[derive(Default)]
710
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
@@ -1331,7 +1334,7 @@ impl Default for prctl_mm_map {
13311334
}
13321335
}
13331336
#[repr(C)]
1334-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
1337+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
13351338
pub struct user_pt_regs {
13361339
pub regs: [__u64; 31usize],
13371340
pub sp: __u64,
@@ -1392,7 +1395,7 @@ fn bindgen_test_layout_user_pt_regs() {
13921395
);
13931396
}
13941397
#[repr(C)]
1395-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
1398+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
13961399
pub struct user_fpsimd_state {
13971400
pub vregs: [__uint128_t; 32usize],
13981401
pub fpsr: __u32,
@@ -1640,7 +1643,7 @@ fn bindgen_test_layout_user_sve_header() {
16401643
);
16411644
}
16421645
#[repr(C)]
1643-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
1646+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
16441647
pub struct kvm_regs {
16451648
pub regs: user_pt_regs,
16461649
pub sp_el1: __u64,
@@ -5289,7 +5292,7 @@ fn bindgen_test_layout_kvm_vapic_addr() {
52895292
);
52905293
}
52915294
#[repr(C)]
5292-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
5295+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
52935296
pub struct kvm_mp_state {
52945297
pub mp_state: __u32,
52955298
}
@@ -7353,7 +7356,7 @@ fn bindgen_test_layout_kvm_reg_list() {
73537356
);
73547357
}
73557358
#[repr(C)]
7356-
#[derive(Debug, Default, Copy, Clone, PartialEq)]
7359+
#[derive(Debug, Default, Copy, Clone, PartialEq, Versionize)]
73577360
pub struct kvm_one_reg {
73587361
pub id: __u64,
73597362
pub addr: __u64,

0 commit comments

Comments
 (0)