File tree 2 files changed +10
-6
lines changed
src/unix/linux_like/linux
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,13 @@ const _IOC_DIRSHIFT: u32 = _IOC_SIZESHIFT + _IOC_SIZEBITS;
46
46
/// Build an ioctl number, analogous to the C macro of the same name.
47
47
#[ inline( always) ]
48
48
const fn _IOC ( dir : u32 , ty : u32 , nr : u32 , size : usize ) -> u32 {
49
- debug_assert ! ( dir <= _IOC_DIRMASK) ;
50
- debug_assert ! ( ty <= _IOC_TYPEMASK) ;
51
- debug_assert ! ( nr <= _IOC_NRMASK) ;
52
- debug_assert ! ( size <= ( _IOC_SIZEMASK as usize ) ) ;
49
+ // TODO the `garando_syntax` crate (used by ctest2 in the CI test suite)
50
+ // cannot currently parse these `debug_assert!`s
51
+ //
52
+ // debug_assert!(dir <= _IOC_DIRMASK);
53
+ // debug_assert!(ty <= _IOC_TYPEMASK);
54
+ // debug_assert!(nr <= _IOC_NRMASK);
55
+ // debug_assert!(size <= (_IOC_SIZEMASK as usize));
53
56
54
57
( dir << _IOC_DIRSHIFT)
55
58
| ( ty << _IOC_TYPESHIFT)
Original file line number Diff line number Diff line change 820
820
pub n_pins: :: c_int,
821
821
pub cross_timestamping: :: c_int,
822
822
pub adjust_phase: :: c_int,
823
- pub rsv: [ :: c_int; 12 ] ,
823
+ pub max_phase_adj: :: c_int,
824
+ pub rsv: [ :: c_int; 11 ] ,
824
825
}
825
826
826
827
pub struct ptp_extts_request {
@@ -1069,7 +1070,7 @@ s! {
1069
1070
pub struct ptp_sys_offset {
1070
1071
pub n_samples: :: c_uint,
1071
1072
pub rsv: [ :: c_uint; 3 ] ,
1072
- pub ts: [ ptp_clock_time; 2 * PTP_MAX_SAMPLES as usize + 1 ] ,
1073
+ pub ts: [ ptp_clock_time; 51 ] ,
1073
1074
}
1074
1075
1075
1076
pub struct ptp_pin_desc {
You can’t perform that action at this time.
0 commit comments