diff --git a/Cargo.toml b/Cargo.toml index da7a4aca..f0b65afa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,6 @@ rust-version = "1.63" [dependencies] core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" } -compiler_builtins = { version = '0.1.49', optional = true } [dev-dependencies] static_assertions = "1.1.0" @@ -56,4 +55,4 @@ default = ["std", "general", "errno"] std = [] no_std = [] elf = [] -rustc-dep-of-std = ["core", "compiler_builtins", "no_std"] +rustc-dep-of-std = ["core", "no_std"] diff --git a/gen/Cargo.toml b/gen/Cargo.toml index fa98787f..93fc9ba8 100644 --- a/gen/Cargo.toml +++ b/gen/Cargo.toml @@ -5,5 +5,5 @@ edition = "2021" publish = false [dependencies] -bindgen = { version = "0.71.1", default-features = false } +bindgen = { version = "0.72.1", default-features = false } tempfile = "3.16.0" diff --git a/gen/src/main.rs b/gen/src/main.rs index 5ca10dcb..198373ca 100644 --- a/gen/src/main.rs +++ b/gen/src/main.rs @@ -176,7 +176,7 @@ fn main() { writeln!(cargo_toml, "elf = []").unwrap(); writeln!( cargo_toml, - "rustc-dep-of-std = [\"core\", \"compiler_builtins\", \"no_std\"]" + "rustc-dep-of-std = [\"core\", \"no_std\"]" ) .unwrap(); diff --git a/src/aarch64/bootparam.rs b/src/aarch64/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/aarch64/bootparam.rs +++ b/src/aarch64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/aarch64/btrfs.rs b/src/aarch64/btrfs.rs index b0fafd55..ea84acbd 100644 --- a/src/aarch64/btrfs.rs +++ b/src/aarch64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -716,7 +716,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/aarch64/elf_uapi.rs b/src/aarch64/elf_uapi.rs index d10a1520..7f7c25ae 100644 --- a/src/aarch64/elf_uapi.rs +++ b/src/aarch64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/errno.rs b/src/aarch64/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/aarch64/errno.rs +++ b/src/aarch64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/aarch64/general.rs b/src/aarch64/general.rs index f453a004..48181f8e 100644 --- a/src/aarch64/general.rs +++ b/src/aarch64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2937,7 +2937,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2961,8 +2961,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2985,7 +2985,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3013,7 +3013,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/aarch64/if_arp.rs b/src/aarch64/if_arp.rs index efc5e54d..870b8515 100644 --- a/src/aarch64/if_arp.rs +++ b/src/aarch64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/if_ether.rs b/src/aarch64/if_ether.rs index c4510559..8e621d75 100644 --- a/src/aarch64/if_ether.rs +++ b/src/aarch64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/if_packet.rs b/src/aarch64/if_packet.rs index 45937547..6deaf325 100644 --- a/src/aarch64/if_packet.rs +++ b/src/aarch64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/image.rs b/src/aarch64/image.rs index 56b1ba41..92449817 100644 --- a/src/aarch64/image.rs +++ b/src/aarch64/image.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/io_uring.rs b/src/aarch64/io_uring.rs index e8bc852a..6c7be8cc 100644 --- a/src/aarch64/io_uring.rs +++ b/src/aarch64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/ioctl.rs b/src/aarch64/ioctl.rs index 63131c97..13aef4bb 100644 --- a/src/aarch64/ioctl.rs +++ b/src/aarch64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/aarch64/landlock.rs b/src/aarch64/landlock.rs index 45c72a5c..4767a6ec 100644 --- a/src/aarch64/landlock.rs +++ b/src/aarch64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/loop_device.rs b/src/aarch64/loop_device.rs index e15f2e80..839064df 100644 --- a/src/aarch64/loop_device.rs +++ b/src/aarch64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_old_uid_t = crate::ctypes::c_ushort; pub type __kernel_old_gid_t = crate::ctypes::c_ushort; diff --git a/src/aarch64/mempolicy.rs b/src/aarch64/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/aarch64/mempolicy.rs +++ b/src/aarch64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/aarch64/net.rs b/src/aarch64/net.rs index dd3fb9b4..76956e30 100644 --- a/src/aarch64/net.rs +++ b/src/aarch64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2334,7 +2334,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2358,8 +2358,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2382,7 +2382,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2410,7 +2410,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/aarch64/netlink.rs b/src/aarch64/netlink.rs index dab8104e..2498e226 100644 --- a/src/aarch64/netlink.rs +++ b/src/aarch64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3819,7 +3819,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5435,7 +5436,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/aarch64/prctl.rs b/src/aarch64/prctl.rs index 41348a13..a81ee8cb 100644 --- a/src/aarch64/prctl.rs +++ b/src/aarch64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/ptrace.rs b/src/aarch64/ptrace.rs index 9c0b977c..58910074 100644 --- a/src/aarch64/ptrace.rs +++ b/src/aarch64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/system.rs b/src/aarch64/system.rs index 454f7e61..91e303e8 100644 --- a/src/aarch64/system.rs +++ b/src/aarch64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/aarch64/xdp.rs b/src/aarch64/xdp.rs index ae71e12a..3169590c 100644 --- a/src/aarch64/xdp.rs +++ b/src/aarch64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/bootparam.rs b/src/arm/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/arm/bootparam.rs +++ b/src/arm/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/arm/btrfs.rs b/src/arm/btrfs.rs index c39eb671..4bd7dc09 100644 --- a/src/arm/btrfs.rs +++ b/src/arm/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -714,7 +714,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/arm/elf_uapi.rs b/src/arm/elf_uapi.rs index ef16ad67..a926d64e 100644 --- a/src/arm/elf_uapi.rs +++ b/src/arm/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/errno.rs b/src/arm/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/arm/errno.rs +++ b/src/arm/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/arm/general.rs b/src/arm/general.rs index 6857db63..0737e98c 100644 --- a/src/arm/general.rs +++ b/src/arm/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3078,7 +3078,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3102,8 +3102,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3126,7 +3126,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3154,7 +3154,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/arm/if_arp.rs b/src/arm/if_arp.rs index 1ae16ea8..b506e6db 100644 --- a/src/arm/if_arp.rs +++ b/src/arm/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/if_ether.rs b/src/arm/if_ether.rs index d337ab84..8fb6dcaa 100644 --- a/src/arm/if_ether.rs +++ b/src/arm/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/if_packet.rs b/src/arm/if_packet.rs index 29495eef..041a9afd 100644 --- a/src/arm/if_packet.rs +++ b/src/arm/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/image.rs b/src/arm/image.rs index 609ea889..bff15e37 100644 --- a/src/arm/image.rs +++ b/src/arm/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/arm/io_uring.rs b/src/arm/io_uring.rs index 72d5a768..14a09f22 100644 --- a/src/arm/io_uring.rs +++ b/src/arm/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/ioctl.rs b/src/arm/ioctl.rs index b90f7c24..be273232 100644 --- a/src/arm/ioctl.rs +++ b/src/arm/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/arm/landlock.rs b/src/arm/landlock.rs index a048f110..2f9257dd 100644 --- a/src/arm/landlock.rs +++ b/src/arm/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/loop_device.rs b/src/arm/loop_device.rs index 4178e49e..a69c0087 100644 --- a/src/arm/loop_device.rs +++ b/src/arm/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_mode_t = crate::ctypes::c_ushort; pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; diff --git a/src/arm/mempolicy.rs b/src/arm/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/arm/mempolicy.rs +++ b/src/arm/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/arm/net.rs b/src/arm/net.rs index f606d295..d31bc01c 100644 --- a/src/arm/net.rs +++ b/src/arm/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2326,7 +2326,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2350,8 +2350,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2374,7 +2374,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2402,7 +2402,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/arm/netlink.rs b/src/arm/netlink.rs index 9754a63a..2426b94f 100644 --- a/src/arm/netlink.rs +++ b/src/arm/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3817,7 +3817,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5433,7 +5434,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/arm/prctl.rs b/src/arm/prctl.rs index ea5e551d..3858c5fb 100644 --- a/src/arm/prctl.rs +++ b/src/arm/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/ptrace.rs b/src/arm/ptrace.rs index 625a4503..1c1c0330 100644 --- a/src/arm/ptrace.rs +++ b/src/arm/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/system.rs b/src/arm/system.rs index e1f9f194..87e1c0a5 100644 --- a/src/arm/system.rs +++ b/src/arm/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/arm/xdp.rs b/src/arm/xdp.rs index 428f9cdc..06d3016b 100644 --- a/src/arm/xdp.rs +++ b/src/arm/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/bootparam.rs b/src/csky/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/csky/bootparam.rs +++ b/src/csky/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/csky/btrfs.rs b/src/csky/btrfs.rs index c77a5665..6006b545 100644 --- a/src/csky/btrfs.rs +++ b/src/csky/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -714,7 +714,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/csky/elf_uapi.rs b/src/csky/elf_uapi.rs index 428d2ba2..9a42c19d 100644 --- a/src/csky/elf_uapi.rs +++ b/src/csky/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/errno.rs b/src/csky/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/csky/errno.rs +++ b/src/csky/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/csky/general.rs b/src/csky/general.rs index 8d02be46..53626db6 100644 --- a/src/csky/general.rs +++ b/src/csky/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2974,7 +2974,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2998,8 +2998,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3022,7 +3022,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3050,7 +3050,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/csky/if_arp.rs b/src/csky/if_arp.rs index e958452b..c0712336 100644 --- a/src/csky/if_arp.rs +++ b/src/csky/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/if_ether.rs b/src/csky/if_ether.rs index 877dce71..37b55703 100644 --- a/src/csky/if_ether.rs +++ b/src/csky/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/if_packet.rs b/src/csky/if_packet.rs index a201d9b6..f3b1a9bb 100644 --- a/src/csky/if_packet.rs +++ b/src/csky/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/image.rs b/src/csky/image.rs index 609ea889..bff15e37 100644 --- a/src/csky/image.rs +++ b/src/csky/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/csky/io_uring.rs b/src/csky/io_uring.rs index ddd93d3f..599a8967 100644 --- a/src/csky/io_uring.rs +++ b/src/csky/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/ioctl.rs b/src/csky/ioctl.rs index 5887ebf7..35c4c22c 100644 --- a/src/csky/ioctl.rs +++ b/src/csky/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/csky/landlock.rs b/src/csky/landlock.rs index cf8e1926..003e937b 100644 --- a/src/csky/landlock.rs +++ b/src/csky/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/loop_device.rs b/src/csky/loop_device.rs index 65db5352..ea21927f 100644 --- a/src/csky/loop_device.rs +++ b/src/csky/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; diff --git a/src/csky/mempolicy.rs b/src/csky/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/csky/mempolicy.rs +++ b/src/csky/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/csky/net.rs b/src/csky/net.rs index 5e576d5b..5b6ed574 100644 --- a/src/csky/net.rs +++ b/src/csky/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2328,7 +2328,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2352,8 +2352,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2376,7 +2376,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2404,7 +2404,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/csky/netlink.rs b/src/csky/netlink.rs index bc0dca4f..bbceed6c 100644 --- a/src/csky/netlink.rs +++ b/src/csky/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3817,7 +3817,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5433,7 +5434,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/csky/prctl.rs b/src/csky/prctl.rs index 5f5828c8..8e21959d 100644 --- a/src/csky/prctl.rs +++ b/src/csky/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/ptrace.rs b/src/csky/ptrace.rs index 23efd41e..11f5cbae 100644 --- a/src/csky/ptrace.rs +++ b/src/csky/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/system.rs b/src/csky/system.rs index 62eb2547..7ed06a50 100644 --- a/src/csky/system.rs +++ b/src/csky/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/csky/xdp.rs b/src/csky/xdp.rs index 705ae741..f285133c 100644 --- a/src/csky/xdp.rs +++ b/src/csky/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/bootparam.rs b/src/loongarch64/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/loongarch64/bootparam.rs +++ b/src/loongarch64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/loongarch64/btrfs.rs b/src/loongarch64/btrfs.rs index cadb70c7..c8680dfb 100644 --- a/src/loongarch64/btrfs.rs +++ b/src/loongarch64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -716,7 +716,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/loongarch64/elf_uapi.rs b/src/loongarch64/elf_uapi.rs index 68d9b45a..595b774c 100644 --- a/src/loongarch64/elf_uapi.rs +++ b/src/loongarch64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/errno.rs b/src/loongarch64/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/loongarch64/errno.rs +++ b/src/loongarch64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/loongarch64/general.rs b/src/loongarch64/general.rs index 28c575ca..dfbad59d 100644 --- a/src/loongarch64/general.rs +++ b/src/loongarch64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2924,7 +2924,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2948,8 +2948,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2972,7 +2972,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3000,7 +3000,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/loongarch64/if_arp.rs b/src/loongarch64/if_arp.rs index 2f1fff3a..525743a6 100644 --- a/src/loongarch64/if_arp.rs +++ b/src/loongarch64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/if_ether.rs b/src/loongarch64/if_ether.rs index c1f4e6d6..12173e63 100644 --- a/src/loongarch64/if_ether.rs +++ b/src/loongarch64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/if_packet.rs b/src/loongarch64/if_packet.rs index 76a0a3eb..4b64e020 100644 --- a/src/loongarch64/if_packet.rs +++ b/src/loongarch64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/image.rs b/src/loongarch64/image.rs index 609ea889..bff15e37 100644 --- a/src/loongarch64/image.rs +++ b/src/loongarch64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/loongarch64/io_uring.rs b/src/loongarch64/io_uring.rs index 6dd1ee15..81d56f6f 100644 --- a/src/loongarch64/io_uring.rs +++ b/src/loongarch64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/ioctl.rs b/src/loongarch64/ioctl.rs index b64fa0f1..c311d174 100644 --- a/src/loongarch64/ioctl.rs +++ b/src/loongarch64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/loongarch64/landlock.rs b/src/loongarch64/landlock.rs index 7ee6e1f1..b4adb6c1 100644 --- a/src/loongarch64/landlock.rs +++ b/src/loongarch64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/loop_device.rs b/src/loongarch64/loop_device.rs index 754d71e8..5e1a2291 100644 --- a/src/loongarch64/loop_device.rs +++ b/src/loongarch64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; diff --git a/src/loongarch64/mempolicy.rs b/src/loongarch64/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/loongarch64/mempolicy.rs +++ b/src/loongarch64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/loongarch64/net.rs b/src/loongarch64/net.rs index 5ae55d5e..3bc35984 100644 --- a/src/loongarch64/net.rs +++ b/src/loongarch64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2334,7 +2334,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2358,8 +2358,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2382,7 +2382,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2410,7 +2410,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/loongarch64/netlink.rs b/src/loongarch64/netlink.rs index c2403f0c..c885fb3a 100644 --- a/src/loongarch64/netlink.rs +++ b/src/loongarch64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3819,7 +3819,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5435,7 +5436,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/loongarch64/prctl.rs b/src/loongarch64/prctl.rs index 0845b8f6..bc57e740 100644 --- a/src/loongarch64/prctl.rs +++ b/src/loongarch64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/ptrace.rs b/src/loongarch64/ptrace.rs index adb0eedb..3f05a6b5 100644 --- a/src/loongarch64/ptrace.rs +++ b/src/loongarch64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/system.rs b/src/loongarch64/system.rs index dd95fee7..67f1be19 100644 --- a/src/loongarch64/system.rs +++ b/src/loongarch64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/loongarch64/xdp.rs b/src/loongarch64/xdp.rs index cf4b82a7..b5a67725 100644 --- a/src/loongarch64/xdp.rs +++ b/src/loongarch64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/bootparam.rs b/src/mips/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/mips/bootparam.rs +++ b/src/mips/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips/btrfs.rs b/src/mips/btrfs.rs index 637447d5..6fff1120 100644 --- a/src/mips/btrfs.rs +++ b/src/mips/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -714,7 +714,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips/elf_uapi.rs b/src/mips/elf_uapi.rs index 9bb83a8c..0636f3d7 100644 --- a/src/mips/elf_uapi.rs +++ b/src/mips/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/errno.rs b/src/mips/errno.rs index 0f7ab95a..59b928fc 100644 --- a/src/mips/errno.rs +++ b/src/mips/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips/general.rs b/src/mips/general.rs index 0457bc71..f6370ff0 100644 --- a/src/mips/general.rs +++ b/src/mips/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3238,7 +3238,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3262,8 +3262,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3286,7 +3286,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3314,7 +3314,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips/if_arp.rs b/src/mips/if_arp.rs index b5a8159e..8d0bcc8d 100644 --- a/src/mips/if_arp.rs +++ b/src/mips/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/if_ether.rs b/src/mips/if_ether.rs index 94ef74cf..b4254334 100644 --- a/src/mips/if_ether.rs +++ b/src/mips/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/if_packet.rs b/src/mips/if_packet.rs index 2c41fcbf..0ea053f5 100644 --- a/src/mips/if_packet.rs +++ b/src/mips/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/image.rs b/src/mips/image.rs index 609ea889..bff15e37 100644 --- a/src/mips/image.rs +++ b/src/mips/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips/io_uring.rs b/src/mips/io_uring.rs index 20a9b5b1..371216ff 100644 --- a/src/mips/io_uring.rs +++ b/src/mips/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/ioctl.rs b/src/mips/ioctl.rs index 4e1d2b77..5f9b5607 100644 --- a/src/mips/ioctl.rs +++ b/src/mips/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; diff --git a/src/mips/landlock.rs b/src/mips/landlock.rs index 0bd4e501..636ba35f 100644 --- a/src/mips/landlock.rs +++ b/src/mips/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/loop_device.rs b/src/mips/loop_device.rs index b52ca709..8865f5d6 100644 --- a/src/mips/loop_device.rs +++ b/src/mips/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; diff --git a/src/mips/mempolicy.rs b/src/mips/mempolicy.rs index 62d469be..f36e463e 100644 --- a/src/mips/mempolicy.rs +++ b/src/mips/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips/net.rs b/src/mips/net.rs index ec3cae18..3c0fd983 100644 --- a/src/mips/net.rs +++ b/src/mips/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2357,7 +2357,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2381,8 +2381,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2405,7 +2405,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2433,7 +2433,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips/netlink.rs b/src/mips/netlink.rs index 899199a4..edc054cf 100644 --- a/src/mips/netlink.rs +++ b/src/mips/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3827,7 +3827,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5443,7 +5444,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/mips/prctl.rs b/src/mips/prctl.rs index 1769be68..56851873 100644 --- a/src/mips/prctl.rs +++ b/src/mips/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/ptrace.rs b/src/mips/ptrace.rs index c362bfcf..9b785f7d 100644 --- a/src/mips/ptrace.rs +++ b/src/mips/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/system.rs b/src/mips/system.rs index 71c40472..e15e4fd7 100644 --- a/src/mips/system.rs +++ b/src/mips/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips/xdp.rs b/src/mips/xdp.rs index 2e54f627..84ae198a 100644 --- a/src/mips/xdp.rs +++ b/src/mips/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/bootparam.rs b/src/mips32r6/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/mips32r6/bootparam.rs +++ b/src/mips32r6/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips32r6/btrfs.rs b/src/mips32r6/btrfs.rs index 637447d5..6fff1120 100644 --- a/src/mips32r6/btrfs.rs +++ b/src/mips32r6/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -714,7 +714,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips32r6/elf_uapi.rs b/src/mips32r6/elf_uapi.rs index 9bb83a8c..0636f3d7 100644 --- a/src/mips32r6/elf_uapi.rs +++ b/src/mips32r6/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/errno.rs b/src/mips32r6/errno.rs index 0f7ab95a..59b928fc 100644 --- a/src/mips32r6/errno.rs +++ b/src/mips32r6/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips32r6/general.rs b/src/mips32r6/general.rs index 0457bc71..f6370ff0 100644 --- a/src/mips32r6/general.rs +++ b/src/mips32r6/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3238,7 +3238,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3262,8 +3262,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3286,7 +3286,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3314,7 +3314,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips32r6/if_arp.rs b/src/mips32r6/if_arp.rs index b5a8159e..8d0bcc8d 100644 --- a/src/mips32r6/if_arp.rs +++ b/src/mips32r6/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/if_ether.rs b/src/mips32r6/if_ether.rs index 94ef74cf..b4254334 100644 --- a/src/mips32r6/if_ether.rs +++ b/src/mips32r6/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/if_packet.rs b/src/mips32r6/if_packet.rs index 2c41fcbf..0ea053f5 100644 --- a/src/mips32r6/if_packet.rs +++ b/src/mips32r6/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/image.rs b/src/mips32r6/image.rs index 609ea889..bff15e37 100644 --- a/src/mips32r6/image.rs +++ b/src/mips32r6/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips32r6/io_uring.rs b/src/mips32r6/io_uring.rs index 20a9b5b1..371216ff 100644 --- a/src/mips32r6/io_uring.rs +++ b/src/mips32r6/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/ioctl.rs b/src/mips32r6/ioctl.rs index 4e1d2b77..5f9b5607 100644 --- a/src/mips32r6/ioctl.rs +++ b/src/mips32r6/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; diff --git a/src/mips32r6/landlock.rs b/src/mips32r6/landlock.rs index 0bd4e501..636ba35f 100644 --- a/src/mips32r6/landlock.rs +++ b/src/mips32r6/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/loop_device.rs b/src/mips32r6/loop_device.rs index b52ca709..8865f5d6 100644 --- a/src/mips32r6/loop_device.rs +++ b/src/mips32r6/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; diff --git a/src/mips32r6/mempolicy.rs b/src/mips32r6/mempolicy.rs index 62d469be..f36e463e 100644 --- a/src/mips32r6/mempolicy.rs +++ b/src/mips32r6/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips32r6/net.rs b/src/mips32r6/net.rs index ec3cae18..3c0fd983 100644 --- a/src/mips32r6/net.rs +++ b/src/mips32r6/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2357,7 +2357,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2381,8 +2381,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2405,7 +2405,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2433,7 +2433,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips32r6/netlink.rs b/src/mips32r6/netlink.rs index 899199a4..edc054cf 100644 --- a/src/mips32r6/netlink.rs +++ b/src/mips32r6/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3827,7 +3827,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5443,7 +5444,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/mips32r6/prctl.rs b/src/mips32r6/prctl.rs index 1769be68..56851873 100644 --- a/src/mips32r6/prctl.rs +++ b/src/mips32r6/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/ptrace.rs b/src/mips32r6/ptrace.rs index c362bfcf..9b785f7d 100644 --- a/src/mips32r6/ptrace.rs +++ b/src/mips32r6/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/system.rs b/src/mips32r6/system.rs index 71c40472..e15e4fd7 100644 --- a/src/mips32r6/system.rs +++ b/src/mips32r6/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips32r6/xdp.rs b/src/mips32r6/xdp.rs index 2e54f627..84ae198a 100644 --- a/src/mips32r6/xdp.rs +++ b/src/mips32r6/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/bootparam.rs b/src/mips64/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/mips64/bootparam.rs +++ b/src/mips64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips64/btrfs.rs b/src/mips64/btrfs.rs index 8671aa2f..01472479 100644 --- a/src/mips64/btrfs.rs +++ b/src/mips64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -716,7 +716,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips64/elf_uapi.rs b/src/mips64/elf_uapi.rs index 70b82a25..ae1f8a11 100644 --- a/src/mips64/elf_uapi.rs +++ b/src/mips64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/errno.rs b/src/mips64/errno.rs index 0f7ab95a..59b928fc 100644 --- a/src/mips64/errno.rs +++ b/src/mips64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips64/general.rs b/src/mips64/general.rs index fa72d775..fedc5f1d 100644 --- a/src/mips64/general.rs +++ b/src/mips64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3157,7 +3157,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3181,8 +3181,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3205,7 +3205,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3233,7 +3233,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips64/if_arp.rs b/src/mips64/if_arp.rs index 279f9f0e..bf63f077 100644 --- a/src/mips64/if_arp.rs +++ b/src/mips64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/if_ether.rs b/src/mips64/if_ether.rs index e6be97f9..dfe86c15 100644 --- a/src/mips64/if_ether.rs +++ b/src/mips64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/if_packet.rs b/src/mips64/if_packet.rs index 5ffa4a33..c22d3d0c 100644 --- a/src/mips64/if_packet.rs +++ b/src/mips64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/image.rs b/src/mips64/image.rs index 609ea889..bff15e37 100644 --- a/src/mips64/image.rs +++ b/src/mips64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips64/io_uring.rs b/src/mips64/io_uring.rs index 4378984b..6e694892 100644 --- a/src/mips64/io_uring.rs +++ b/src/mips64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/ioctl.rs b/src/mips64/ioctl.rs index 078f31b2..10d7f801 100644 --- a/src/mips64/ioctl.rs +++ b/src/mips64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; diff --git a/src/mips64/landlock.rs b/src/mips64/landlock.rs index 68383115..f45cdeb8 100644 --- a/src/mips64/landlock.rs +++ b/src/mips64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/loop_device.rs b/src/mips64/loop_device.rs index 48aca935..42803b9d 100644 --- a/src/mips64/loop_device.rs +++ b/src/mips64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; diff --git a/src/mips64/mempolicy.rs b/src/mips64/mempolicy.rs index 62d469be..f36e463e 100644 --- a/src/mips64/mempolicy.rs +++ b/src/mips64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips64/net.rs b/src/mips64/net.rs index 8dd2d3ab..59f779f7 100644 --- a/src/mips64/net.rs +++ b/src/mips64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2365,7 +2365,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2389,8 +2389,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2413,7 +2413,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2441,7 +2441,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips64/netlink.rs b/src/mips64/netlink.rs index ee831f04..574c37c5 100644 --- a/src/mips64/netlink.rs +++ b/src/mips64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3829,7 +3829,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5445,7 +5446,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/mips64/prctl.rs b/src/mips64/prctl.rs index ccc6d051..4b183082 100644 --- a/src/mips64/prctl.rs +++ b/src/mips64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/ptrace.rs b/src/mips64/ptrace.rs index 7d87cbab..fdca98f2 100644 --- a/src/mips64/ptrace.rs +++ b/src/mips64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/system.rs b/src/mips64/system.rs index b7a8d4d5..8015f0b3 100644 --- a/src/mips64/system.rs +++ b/src/mips64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64/xdp.rs b/src/mips64/xdp.rs index 73e553e6..5762a4db 100644 --- a/src/mips64/xdp.rs +++ b/src/mips64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/bootparam.rs b/src/mips64r6/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/mips64r6/bootparam.rs +++ b/src/mips64r6/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips64r6/btrfs.rs b/src/mips64r6/btrfs.rs index 8671aa2f..01472479 100644 --- a/src/mips64r6/btrfs.rs +++ b/src/mips64r6/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -716,7 +716,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips64r6/elf_uapi.rs b/src/mips64r6/elf_uapi.rs index 70b82a25..ae1f8a11 100644 --- a/src/mips64r6/elf_uapi.rs +++ b/src/mips64r6/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/errno.rs b/src/mips64r6/errno.rs index 0f7ab95a..59b928fc 100644 --- a/src/mips64r6/errno.rs +++ b/src/mips64r6/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips64r6/general.rs b/src/mips64r6/general.rs index fa72d775..fedc5f1d 100644 --- a/src/mips64r6/general.rs +++ b/src/mips64r6/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3157,7 +3157,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3181,8 +3181,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3205,7 +3205,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3233,7 +3233,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips64r6/if_arp.rs b/src/mips64r6/if_arp.rs index 279f9f0e..bf63f077 100644 --- a/src/mips64r6/if_arp.rs +++ b/src/mips64r6/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/if_ether.rs b/src/mips64r6/if_ether.rs index e6be97f9..dfe86c15 100644 --- a/src/mips64r6/if_ether.rs +++ b/src/mips64r6/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/if_packet.rs b/src/mips64r6/if_packet.rs index 5ffa4a33..c22d3d0c 100644 --- a/src/mips64r6/if_packet.rs +++ b/src/mips64r6/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/image.rs b/src/mips64r6/image.rs index 609ea889..bff15e37 100644 --- a/src/mips64r6/image.rs +++ b/src/mips64r6/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/mips64r6/io_uring.rs b/src/mips64r6/io_uring.rs index 4378984b..6e694892 100644 --- a/src/mips64r6/io_uring.rs +++ b/src/mips64r6/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/ioctl.rs b/src/mips64r6/ioctl.rs index 078f31b2..10d7f801 100644 --- a/src/mips64r6/ioctl.rs +++ b/src/mips64r6/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; diff --git a/src/mips64r6/landlock.rs b/src/mips64r6/landlock.rs index 68383115..f45cdeb8 100644 --- a/src/mips64r6/landlock.rs +++ b/src/mips64r6/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/loop_device.rs b/src/mips64r6/loop_device.rs index 48aca935..42803b9d 100644 --- a/src/mips64r6/loop_device.rs +++ b/src/mips64r6/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; diff --git a/src/mips64r6/mempolicy.rs b/src/mips64r6/mempolicy.rs index 62d469be..f36e463e 100644 --- a/src/mips64r6/mempolicy.rs +++ b/src/mips64r6/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/mips64r6/net.rs b/src/mips64r6/net.rs index 8dd2d3ab..59f779f7 100644 --- a/src/mips64r6/net.rs +++ b/src/mips64r6/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2365,7 +2365,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2389,8 +2389,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2413,7 +2413,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2441,7 +2441,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/mips64r6/netlink.rs b/src/mips64r6/netlink.rs index ee831f04..574c37c5 100644 --- a/src/mips64r6/netlink.rs +++ b/src/mips64r6/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3829,7 +3829,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5445,7 +5446,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/mips64r6/prctl.rs b/src/mips64r6/prctl.rs index ccc6d051..4b183082 100644 --- a/src/mips64r6/prctl.rs +++ b/src/mips64r6/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/ptrace.rs b/src/mips64r6/ptrace.rs index 7d87cbab..fdca98f2 100644 --- a/src/mips64r6/ptrace.rs +++ b/src/mips64r6/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/system.rs b/src/mips64r6/system.rs index b7a8d4d5..8015f0b3 100644 --- a/src/mips64r6/system.rs +++ b/src/mips64r6/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/mips64r6/xdp.rs b/src/mips64r6/xdp.rs index 73e553e6..5762a4db 100644 --- a/src/mips64r6/xdp.rs +++ b/src/mips64r6/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/bootparam.rs b/src/powerpc/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/powerpc/bootparam.rs +++ b/src/powerpc/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/powerpc/btrfs.rs b/src/powerpc/btrfs.rs index 4c346524..e0ea20de 100644 --- a/src/powerpc/btrfs.rs +++ b/src/powerpc/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -720,7 +720,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/powerpc/elf_uapi.rs b/src/powerpc/elf_uapi.rs index f8ec632f..1ff79f3f 100644 --- a/src/powerpc/elf_uapi.rs +++ b/src/powerpc/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/errno.rs b/src/powerpc/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/powerpc/errno.rs +++ b/src/powerpc/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/powerpc/general.rs b/src/powerpc/general.rs index 83572e80..c4c31a14 100644 --- a/src/powerpc/general.rs +++ b/src/powerpc/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3162,7 +3162,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3186,8 +3186,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3210,7 +3210,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3238,7 +3238,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/powerpc/if_arp.rs b/src/powerpc/if_arp.rs index e1497ddc..86b49834 100644 --- a/src/powerpc/if_arp.rs +++ b/src/powerpc/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/if_ether.rs b/src/powerpc/if_ether.rs index 796bee0c..da698c46 100644 --- a/src/powerpc/if_ether.rs +++ b/src/powerpc/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/if_packet.rs b/src/powerpc/if_packet.rs index e328557a..5fd6357e 100644 --- a/src/powerpc/if_packet.rs +++ b/src/powerpc/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/image.rs b/src/powerpc/image.rs index 609ea889..bff15e37 100644 --- a/src/powerpc/image.rs +++ b/src/powerpc/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/powerpc/io_uring.rs b/src/powerpc/io_uring.rs index db8c2579..d05ee537 100644 --- a/src/powerpc/io_uring.rs +++ b/src/powerpc/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/ioctl.rs b/src/powerpc/ioctl.rs index a19e6b1d..46617f66 100644 --- a/src/powerpc/ioctl.rs +++ b/src/powerpc/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 1074030207; pub const FIONBIO: u32 = 2147772030; diff --git a/src/powerpc/landlock.rs b/src/powerpc/landlock.rs index e27b67d2..3260bd82 100644 --- a/src/powerpc/landlock.rs +++ b/src/powerpc/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/loop_device.rs b/src/powerpc/loop_device.rs index bb39cfd8..d6181eaf 100644 --- a/src/powerpc/loop_device.rs +++ b/src/powerpc/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_ipc_pid_t = crate::ctypes::c_short; pub type __kernel_long_t = crate::ctypes::c_long; diff --git a/src/powerpc/mempolicy.rs b/src/powerpc/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/powerpc/mempolicy.rs +++ b/src/powerpc/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/powerpc/net.rs b/src/powerpc/net.rs index 1cfa7fe9..d3cb6028 100644 --- a/src/powerpc/net.rs +++ b/src/powerpc/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2332,7 +2332,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2356,8 +2356,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2380,7 +2380,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2408,7 +2408,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/powerpc/netlink.rs b/src/powerpc/netlink.rs index 1d68401a..28e9c2b5 100644 --- a/src/powerpc/netlink.rs +++ b/src/powerpc/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3823,7 +3823,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5439,7 +5440,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/powerpc/prctl.rs b/src/powerpc/prctl.rs index 9fa9c1fb..ff2292b2 100644 --- a/src/powerpc/prctl.rs +++ b/src/powerpc/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/ptrace.rs b/src/powerpc/ptrace.rs index 2a57d9ec..fbf1a680 100644 --- a/src/powerpc/ptrace.rs +++ b/src/powerpc/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/system.rs b/src/powerpc/system.rs index c7fa9cbe..863dc970 100644 --- a/src/powerpc/system.rs +++ b/src/powerpc/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc/xdp.rs b/src/powerpc/xdp.rs index 974103e3..fef2154f 100644 --- a/src/powerpc/xdp.rs +++ b/src/powerpc/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/bootparam.rs b/src/powerpc64/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/powerpc64/bootparam.rs +++ b/src/powerpc64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/powerpc64/btrfs.rs b/src/powerpc64/btrfs.rs index 8a2cd77b..2f98fd2c 100644 --- a/src/powerpc64/btrfs.rs +++ b/src/powerpc64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -722,7 +722,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/powerpc64/elf_uapi.rs b/src/powerpc64/elf_uapi.rs index 7533bfaa..b9b2d143 100644 --- a/src/powerpc64/elf_uapi.rs +++ b/src/powerpc64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/errno.rs b/src/powerpc64/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/powerpc64/errno.rs +++ b/src/powerpc64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/powerpc64/general.rs b/src/powerpc64/general.rs index 0ef11746..2eb0b02e 100644 --- a/src/powerpc64/general.rs +++ b/src/powerpc64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3111,7 +3111,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3135,8 +3135,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3159,7 +3159,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3187,7 +3187,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/powerpc64/if_arp.rs b/src/powerpc64/if_arp.rs index 70c7d943..62b19982 100644 --- a/src/powerpc64/if_arp.rs +++ b/src/powerpc64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/if_ether.rs b/src/powerpc64/if_ether.rs index 24ad295e..9f2fed32 100644 --- a/src/powerpc64/if_ether.rs +++ b/src/powerpc64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/if_packet.rs b/src/powerpc64/if_packet.rs index 568ddd92..1d5963b6 100644 --- a/src/powerpc64/if_packet.rs +++ b/src/powerpc64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/image.rs b/src/powerpc64/image.rs index 609ea889..bff15e37 100644 --- a/src/powerpc64/image.rs +++ b/src/powerpc64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/powerpc64/io_uring.rs b/src/powerpc64/io_uring.rs index 6e2bd050..bfa8e7cb 100644 --- a/src/powerpc64/io_uring.rs +++ b/src/powerpc64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/ioctl.rs b/src/powerpc64/ioctl.rs index aac874fb..fe3c153b 100644 --- a/src/powerpc64/ioctl.rs +++ b/src/powerpc64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 1074030207; pub const FIONBIO: u32 = 2147772030; diff --git a/src/powerpc64/landlock.rs b/src/powerpc64/landlock.rs index 528e12d9..22390559 100644 --- a/src/powerpc64/landlock.rs +++ b/src/powerpc64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/loop_device.rs b/src/powerpc64/loop_device.rs index b3923378..7eb429dc 100644 --- a/src/powerpc64/loop_device.rs +++ b/src/powerpc64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_old_dev_t = crate::ctypes::c_ulong; pub type __kernel_long_t = crate::ctypes::c_long; diff --git a/src/powerpc64/mempolicy.rs b/src/powerpc64/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/powerpc64/mempolicy.rs +++ b/src/powerpc64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/powerpc64/net.rs b/src/powerpc64/net.rs index 61bb4334..5d9fa20d 100644 --- a/src/powerpc64/net.rs +++ b/src/powerpc64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2340,7 +2340,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2364,8 +2364,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2388,7 +2388,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2416,7 +2416,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/powerpc64/netlink.rs b/src/powerpc64/netlink.rs index 4d9d7ca0..5d7b7af2 100644 --- a/src/powerpc64/netlink.rs +++ b/src/powerpc64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3825,7 +3825,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5441,7 +5442,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/powerpc64/prctl.rs b/src/powerpc64/prctl.rs index 41350a3d..324f5b4e 100644 --- a/src/powerpc64/prctl.rs +++ b/src/powerpc64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/ptrace.rs b/src/powerpc64/ptrace.rs index 398a3c86..9e4fc021 100644 --- a/src/powerpc64/ptrace.rs +++ b/src/powerpc64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/system.rs b/src/powerpc64/system.rs index d88dee22..d2df177c 100644 --- a/src/powerpc64/system.rs +++ b/src/powerpc64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/powerpc64/xdp.rs b/src/powerpc64/xdp.rs index 54e5239d..6a96b955 100644 --- a/src/powerpc64/xdp.rs +++ b/src/powerpc64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/bootparam.rs b/src/riscv32/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/riscv32/bootparam.rs +++ b/src/riscv32/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/riscv32/btrfs.rs b/src/riscv32/btrfs.rs index c77a5665..6006b545 100644 --- a/src/riscv32/btrfs.rs +++ b/src/riscv32/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -714,7 +714,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/riscv32/elf_uapi.rs b/src/riscv32/elf_uapi.rs index 428d2ba2..9a42c19d 100644 --- a/src/riscv32/elf_uapi.rs +++ b/src/riscv32/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/errno.rs b/src/riscv32/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/riscv32/errno.rs +++ b/src/riscv32/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/riscv32/general.rs b/src/riscv32/general.rs index 6736a4fe..b70331e7 100644 --- a/src/riscv32/general.rs +++ b/src/riscv32/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2952,7 +2952,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2976,8 +2976,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3000,7 +3000,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3028,7 +3028,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/riscv32/if_arp.rs b/src/riscv32/if_arp.rs index e603a21e..a7cb133f 100644 --- a/src/riscv32/if_arp.rs +++ b/src/riscv32/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/if_ether.rs b/src/riscv32/if_ether.rs index 877dce71..37b55703 100644 --- a/src/riscv32/if_ether.rs +++ b/src/riscv32/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/if_packet.rs b/src/riscv32/if_packet.rs index d69c7633..f5f2897b 100644 --- a/src/riscv32/if_packet.rs +++ b/src/riscv32/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/image.rs b/src/riscv32/image.rs index 609ea889..bff15e37 100644 --- a/src/riscv32/image.rs +++ b/src/riscv32/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/riscv32/io_uring.rs b/src/riscv32/io_uring.rs index 4ff14a53..ca217846 100644 --- a/src/riscv32/io_uring.rs +++ b/src/riscv32/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/ioctl.rs b/src/riscv32/ioctl.rs index 5e393608..7d37c95d 100644 --- a/src/riscv32/ioctl.rs +++ b/src/riscv32/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/riscv32/landlock.rs b/src/riscv32/landlock.rs index cf8e1926..003e937b 100644 --- a/src/riscv32/landlock.rs +++ b/src/riscv32/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/loop_device.rs b/src/riscv32/loop_device.rs index 65db5352..ea21927f 100644 --- a/src/riscv32/loop_device.rs +++ b/src/riscv32/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; diff --git a/src/riscv32/mempolicy.rs b/src/riscv32/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/riscv32/mempolicy.rs +++ b/src/riscv32/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/riscv32/net.rs b/src/riscv32/net.rs index 7985129f..8cb6e51b 100644 --- a/src/riscv32/net.rs +++ b/src/riscv32/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2326,7 +2326,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2350,8 +2350,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2374,7 +2374,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2402,7 +2402,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/riscv32/netlink.rs b/src/riscv32/netlink.rs index bc0dca4f..bbceed6c 100644 --- a/src/riscv32/netlink.rs +++ b/src/riscv32/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3817,7 +3817,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5433,7 +5434,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/riscv32/prctl.rs b/src/riscv32/prctl.rs index 5f5828c8..8e21959d 100644 --- a/src/riscv32/prctl.rs +++ b/src/riscv32/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/ptrace.rs b/src/riscv32/ptrace.rs index 5549e2c6..7af62579 100644 --- a/src/riscv32/ptrace.rs +++ b/src/riscv32/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/system.rs b/src/riscv32/system.rs index 62eb2547..7ed06a50 100644 --- a/src/riscv32/system.rs +++ b/src/riscv32/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv32/xdp.rs b/src/riscv32/xdp.rs index 705ae741..f285133c 100644 --- a/src/riscv32/xdp.rs +++ b/src/riscv32/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/bootparam.rs b/src/riscv64/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/riscv64/bootparam.rs +++ b/src/riscv64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/riscv64/btrfs.rs b/src/riscv64/btrfs.rs index cadb70c7..c8680dfb 100644 --- a/src/riscv64/btrfs.rs +++ b/src/riscv64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -716,7 +716,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/riscv64/elf_uapi.rs b/src/riscv64/elf_uapi.rs index 68d9b45a..595b774c 100644 --- a/src/riscv64/elf_uapi.rs +++ b/src/riscv64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/errno.rs b/src/riscv64/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/riscv64/errno.rs +++ b/src/riscv64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/riscv64/general.rs b/src/riscv64/general.rs index cd6e8c20..1dbd7770 100644 --- a/src/riscv64/general.rs +++ b/src/riscv64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2937,7 +2937,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2961,8 +2961,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2985,7 +2985,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3013,7 +3013,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/riscv64/if_arp.rs b/src/riscv64/if_arp.rs index 2f1fff3a..525743a6 100644 --- a/src/riscv64/if_arp.rs +++ b/src/riscv64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/if_ether.rs b/src/riscv64/if_ether.rs index c1f4e6d6..12173e63 100644 --- a/src/riscv64/if_ether.rs +++ b/src/riscv64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/if_packet.rs b/src/riscv64/if_packet.rs index 76a0a3eb..4b64e020 100644 --- a/src/riscv64/if_packet.rs +++ b/src/riscv64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/image.rs b/src/riscv64/image.rs index 609ea889..bff15e37 100644 --- a/src/riscv64/image.rs +++ b/src/riscv64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/riscv64/io_uring.rs b/src/riscv64/io_uring.rs index 6dd1ee15..81d56f6f 100644 --- a/src/riscv64/io_uring.rs +++ b/src/riscv64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/ioctl.rs b/src/riscv64/ioctl.rs index 63131c97..13aef4bb 100644 --- a/src/riscv64/ioctl.rs +++ b/src/riscv64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/riscv64/landlock.rs b/src/riscv64/landlock.rs index 7ee6e1f1..b4adb6c1 100644 --- a/src/riscv64/landlock.rs +++ b/src/riscv64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/loop_device.rs b/src/riscv64/loop_device.rs index 754d71e8..5e1a2291 100644 --- a/src/riscv64/loop_device.rs +++ b/src/riscv64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; diff --git a/src/riscv64/mempolicy.rs b/src/riscv64/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/riscv64/mempolicy.rs +++ b/src/riscv64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/riscv64/net.rs b/src/riscv64/net.rs index 5ae55d5e..3bc35984 100644 --- a/src/riscv64/net.rs +++ b/src/riscv64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2334,7 +2334,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2358,8 +2358,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2382,7 +2382,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2410,7 +2410,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/riscv64/netlink.rs b/src/riscv64/netlink.rs index c2403f0c..c885fb3a 100644 --- a/src/riscv64/netlink.rs +++ b/src/riscv64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3819,7 +3819,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5435,7 +5436,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/riscv64/prctl.rs b/src/riscv64/prctl.rs index 0845b8f6..bc57e740 100644 --- a/src/riscv64/prctl.rs +++ b/src/riscv64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/ptrace.rs b/src/riscv64/ptrace.rs index 48982ea3..fd719a12 100644 --- a/src/riscv64/ptrace.rs +++ b/src/riscv64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/system.rs b/src/riscv64/system.rs index dd95fee7..67f1be19 100644 --- a/src/riscv64/system.rs +++ b/src/riscv64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/riscv64/xdp.rs b/src/riscv64/xdp.rs index cf4b82a7..b5a67725 100644 --- a/src/riscv64/xdp.rs +++ b/src/riscv64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/bootparam.rs b/src/s390x/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/s390x/bootparam.rs +++ b/src/s390x/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/s390x/btrfs.rs b/src/s390x/btrfs.rs index 7cce05ff..a4c65487 100644 --- a/src/s390x/btrfs.rs +++ b/src/s390x/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -730,7 +730,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/s390x/elf_uapi.rs b/src/s390x/elf_uapi.rs index 590b622b..f2006a8e 100644 --- a/src/s390x/elf_uapi.rs +++ b/src/s390x/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/errno.rs b/src/s390x/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/s390x/errno.rs +++ b/src/s390x/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/s390x/general.rs b/src/s390x/general.rs index 7e4a1640..0e520701 100644 --- a/src/s390x/general.rs +++ b/src/s390x/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3003,7 +3003,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3027,8 +3027,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3051,7 +3051,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3079,7 +3079,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/s390x/if_arp.rs b/src/s390x/if_arp.rs index 254173b7..ed3578ea 100644 --- a/src/s390x/if_arp.rs +++ b/src/s390x/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/if_ether.rs b/src/s390x/if_ether.rs index 03ebba78..1ccd26a8 100644 --- a/src/s390x/if_ether.rs +++ b/src/s390x/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/if_packet.rs b/src/s390x/if_packet.rs index 571ba77f..ce94d0a2 100644 --- a/src/s390x/if_packet.rs +++ b/src/s390x/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/image.rs b/src/s390x/image.rs index 609ea889..bff15e37 100644 --- a/src/s390x/image.rs +++ b/src/s390x/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/s390x/io_uring.rs b/src/s390x/io_uring.rs index 83cc3303..ea70cad4 100644 --- a/src/s390x/io_uring.rs +++ b/src/s390x/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/ioctl.rs b/src/s390x/ioctl.rs index dcf67f27..0e30001e 100644 --- a/src/s390x/ioctl.rs +++ b/src/s390x/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/s390x/landlock.rs b/src/s390x/landlock.rs index 35598c8a..e139cbf2 100644 --- a/src/s390x/landlock.rs +++ b/src/s390x/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/loop_device.rs b/src/s390x/loop_device.rs index 5690fb8c..51cfdd16 100644 --- a/src/s390x/loop_device.rs +++ b/src/s390x/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_size_t = crate::ctypes::c_ulong; pub type __kernel_ssize_t = crate::ctypes::c_long; diff --git a/src/s390x/mempolicy.rs b/src/s390x/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/s390x/mempolicy.rs +++ b/src/s390x/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/s390x/net.rs b/src/s390x/net.rs index c3e4b2e0..657dd9ca 100644 --- a/src/s390x/net.rs +++ b/src/s390x/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2354,7 +2354,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2378,8 +2378,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2402,7 +2402,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2430,7 +2430,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/s390x/netlink.rs b/src/s390x/netlink.rs index 1f1379b1..76738af1 100644 --- a/src/s390x/netlink.rs +++ b/src/s390x/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3833,7 +3833,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5455,7 +5456,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/s390x/prctl.rs b/src/s390x/prctl.rs index 3d59164e..11f617f9 100644 --- a/src/s390x/prctl.rs +++ b/src/s390x/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/ptrace.rs b/src/s390x/ptrace.rs index 4b4e1371..6194649f 100644 --- a/src/s390x/ptrace.rs +++ b/src/s390x/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -1035,7 +1035,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -1059,8 +1059,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -1083,7 +1083,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -1111,7 +1111,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/s390x/system.rs b/src/s390x/system.rs index e3947a4d..5742a223 100644 --- a/src/s390x/system.rs +++ b/src/s390x/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/s390x/xdp.rs b/src/s390x/xdp.rs index 0cd32a26..9cdb94b4 100644 --- a/src/s390x/xdp.rs +++ b/src/s390x/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/bootparam.rs b/src/sparc/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/sparc/bootparam.rs +++ b/src/sparc/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/sparc/btrfs.rs b/src/sparc/btrfs.rs index dc0cbd46..933a7ab2 100644 --- a/src/sparc/btrfs.rs +++ b/src/sparc/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -714,7 +714,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/sparc/elf_uapi.rs b/src/sparc/elf_uapi.rs index ebe0c25d..cc05d9e1 100644 --- a/src/sparc/elf_uapi.rs +++ b/src/sparc/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/errno.rs b/src/sparc/errno.rs index 994fb91e..743e86bb 100644 --- a/src/sparc/errno.rs +++ b/src/sparc/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/sparc/general.rs b/src/sparc/general.rs index e1c29165..1c371a61 100644 --- a/src/sparc/general.rs +++ b/src/sparc/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3120,7 +3120,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3144,8 +3144,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3168,7 +3168,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3196,7 +3196,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/sparc/if_arp.rs b/src/sparc/if_arp.rs index 9d4c96bd..ca73ea07 100644 --- a/src/sparc/if_arp.rs +++ b/src/sparc/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/if_ether.rs b/src/sparc/if_ether.rs index 530c646c..1eb9a7a1 100644 --- a/src/sparc/if_ether.rs +++ b/src/sparc/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/if_packet.rs b/src/sparc/if_packet.rs index efdbb660..c84c62f2 100644 --- a/src/sparc/if_packet.rs +++ b/src/sparc/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/image.rs b/src/sparc/image.rs index 609ea889..bff15e37 100644 --- a/src/sparc/image.rs +++ b/src/sparc/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/sparc/io_uring.rs b/src/sparc/io_uring.rs index 3239e72d..d5f0f518 100644 --- a/src/sparc/io_uring.rs +++ b/src/sparc/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/ioctl.rs b/src/sparc/ioctl.rs index 609ea889..bff15e37 100644 --- a/src/sparc/ioctl.rs +++ b/src/sparc/ioctl.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/sparc/landlock.rs b/src/sparc/landlock.rs index 31645533..fcede134 100644 --- a/src/sparc/landlock.rs +++ b/src/sparc/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/loop_device.rs b/src/sparc/loop_device.rs index de73aea0..e08def3b 100644 --- a/src/sparc/loop_device.rs +++ b/src/sparc/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_size_t = crate::ctypes::c_uint; pub type __kernel_ssize_t = crate::ctypes::c_int; diff --git a/src/sparc/mempolicy.rs b/src/sparc/mempolicy.rs index b26dbf96..b25b97d1 100644 --- a/src/sparc/mempolicy.rs +++ b/src/sparc/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/sparc/net.rs b/src/sparc/net.rs index 7563b15d..00a55af1 100644 --- a/src/sparc/net.rs +++ b/src/sparc/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2542,7 +2542,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2566,8 +2566,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2590,7 +2590,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2618,7 +2618,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/sparc/netlink.rs b/src/sparc/netlink.rs index b33c795b..6a565f0f 100644 --- a/src/sparc/netlink.rs +++ b/src/sparc/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3817,7 +3817,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5433,7 +5434,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/sparc/prctl.rs b/src/sparc/prctl.rs index 6c4d854a..03327ab6 100644 --- a/src/sparc/prctl.rs +++ b/src/sparc/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/ptrace.rs b/src/sparc/ptrace.rs index 23aee34c..cd6bd935 100644 --- a/src/sparc/ptrace.rs +++ b/src/sparc/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/system.rs b/src/sparc/system.rs index 203e479a..49bc94e0 100644 --- a/src/sparc/system.rs +++ b/src/sparc/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc/xdp.rs b/src/sparc/xdp.rs index 1175fcee..5b8a8804 100644 --- a/src/sparc/xdp.rs +++ b/src/sparc/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/bootparam.rs b/src/sparc64/bootparam.rs index 609ea889..bff15e37 100644 --- a/src/sparc64/bootparam.rs +++ b/src/sparc64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/sparc64/btrfs.rs b/src/sparc64/btrfs.rs index f08c123d..7479668b 100644 --- a/src/sparc64/btrfs.rs +++ b/src/sparc64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -722,7 +722,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/sparc64/elf_uapi.rs b/src/sparc64/elf_uapi.rs index b20ecb91..8e5a895f 100644 --- a/src/sparc64/elf_uapi.rs +++ b/src/sparc64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/errno.rs b/src/sparc64/errno.rs index 994fb91e..743e86bb 100644 --- a/src/sparc64/errno.rs +++ b/src/sparc64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/sparc64/general.rs b/src/sparc64/general.rs index e8a16dcd..98fa6bdd 100644 --- a/src/sparc64/general.rs +++ b/src/sparc64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3076,7 +3076,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3100,8 +3100,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3124,7 +3124,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3152,7 +3152,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/sparc64/if_arp.rs b/src/sparc64/if_arp.rs index be8dfd19..2ed73ed2 100644 --- a/src/sparc64/if_arp.rs +++ b/src/sparc64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/if_ether.rs b/src/sparc64/if_ether.rs index bac3e387..c5a81c8f 100644 --- a/src/sparc64/if_ether.rs +++ b/src/sparc64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/if_packet.rs b/src/sparc64/if_packet.rs index 0f5f1dfc..5866a979 100644 --- a/src/sparc64/if_packet.rs +++ b/src/sparc64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/image.rs b/src/sparc64/image.rs index 609ea889..bff15e37 100644 --- a/src/sparc64/image.rs +++ b/src/sparc64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/sparc64/io_uring.rs b/src/sparc64/io_uring.rs index 6b66d109..87bfdcf8 100644 --- a/src/sparc64/io_uring.rs +++ b/src/sparc64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/ioctl.rs b/src/sparc64/ioctl.rs index 609ea889..bff15e37 100644 --- a/src/sparc64/ioctl.rs +++ b/src/sparc64/ioctl.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/sparc64/landlock.rs b/src/sparc64/landlock.rs index 3f677cae..a05ae5f5 100644 --- a/src/sparc64/landlock.rs +++ b/src/sparc64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/loop_device.rs b/src/sparc64/loop_device.rs index e2201c11..c64807b9 100644 --- a/src/sparc64/loop_device.rs +++ b/src/sparc64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_old_uid_t = crate::ctypes::c_ushort; pub type __kernel_old_gid_t = crate::ctypes::c_ushort; diff --git a/src/sparc64/mempolicy.rs b/src/sparc64/mempolicy.rs index b26dbf96..b25b97d1 100644 --- a/src/sparc64/mempolicy.rs +++ b/src/sparc64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/sparc64/net.rs b/src/sparc64/net.rs index 182cb11e..cde5fb0f 100644 --- a/src/sparc64/net.rs +++ b/src/sparc64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2556,7 +2556,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2580,8 +2580,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2604,7 +2604,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2632,7 +2632,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/sparc64/netlink.rs b/src/sparc64/netlink.rs index 7da6cfa5..eb8fb405 100644 --- a/src/sparc64/netlink.rs +++ b/src/sparc64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3825,7 +3825,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5441,7 +5442,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/sparc64/prctl.rs b/src/sparc64/prctl.rs index 6901371d..2b4f0a4e 100644 --- a/src/sparc64/prctl.rs +++ b/src/sparc64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/ptrace.rs b/src/sparc64/ptrace.rs index fc330282..ce3bf692 100644 --- a/src/sparc64/ptrace.rs +++ b/src/sparc64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/system.rs b/src/sparc64/system.rs index 4e9f278a..8e9b4988 100644 --- a/src/sparc64/system.rs +++ b/src/sparc64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/sparc64/xdp.rs b/src/sparc64/xdp.rs index 6e89401a..50b99dd2 100644 --- a/src/sparc64/xdp.rs +++ b/src/sparc64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/bootparam.rs b/src/x32/bootparam.rs index 355fea45..e6503815 100644 --- a/src/x32/bootparam.rs +++ b/src/x32/bootparam.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/btrfs.rs b/src/x32/btrfs.rs index d46a926c..4e9372fb 100644 --- a/src/x32/btrfs.rs +++ b/src/x32/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -716,7 +716,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x32/elf_uapi.rs b/src/x32/elf_uapi.rs index f0d5b970..c4258678 100644 --- a/src/x32/elf_uapi.rs +++ b/src/x32/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/errno.rs b/src/x32/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/x32/errno.rs +++ b/src/x32/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/x32/general.rs b/src/x32/general.rs index 7476f8ce..ef091f7c 100644 --- a/src/x32/general.rs +++ b/src/x32/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2994,7 +2994,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3018,8 +3018,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3042,7 +3042,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3070,7 +3070,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/x32/if_arp.rs b/src/x32/if_arp.rs index 2a8d06dd..13f30185 100644 --- a/src/x32/if_arp.rs +++ b/src/x32/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/if_ether.rs b/src/x32/if_ether.rs index c984e0ea..5224b4c6 100644 --- a/src/x32/if_ether.rs +++ b/src/x32/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/if_packet.rs b/src/x32/if_packet.rs index a345d2f6..cf6136f3 100644 --- a/src/x32/if_packet.rs +++ b/src/x32/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/image.rs b/src/x32/image.rs index 609ea889..bff15e37 100644 --- a/src/x32/image.rs +++ b/src/x32/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/x32/io_uring.rs b/src/x32/io_uring.rs index b60ec4d1..70b134e2 100644 --- a/src/x32/io_uring.rs +++ b/src/x32/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/ioctl.rs b/src/x32/ioctl.rs index 63131c97..13aef4bb 100644 --- a/src/x32/ioctl.rs +++ b/src/x32/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/x32/landlock.rs b/src/x32/landlock.rs index 12f8e889..99228e47 100644 --- a/src/x32/landlock.rs +++ b/src/x32/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/loop_device.rs b/src/x32/loop_device.rs index 5d72b9e3..d27e64de 100644 --- a/src/x32/loop_device.rs +++ b/src/x32/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_long_t = crate::ctypes::c_longlong; pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; diff --git a/src/x32/mempolicy.rs b/src/x32/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/x32/mempolicy.rs +++ b/src/x32/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/x32/net.rs b/src/x32/net.rs index a5e629c6..0c5a798e 100644 --- a/src/x32/net.rs +++ b/src/x32/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2336,7 +2336,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2360,8 +2360,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2384,7 +2384,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2412,7 +2412,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/x32/netlink.rs b/src/x32/netlink.rs index fd757508..d7f0e819 100644 --- a/src/x32/netlink.rs +++ b/src/x32/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3819,7 +3819,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5435,7 +5436,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/x32/prctl.rs b/src/x32/prctl.rs index 2b638af1..3936715f 100644 --- a/src/x32/prctl.rs +++ b/src/x32/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/ptrace.rs b/src/x32/ptrace.rs index 5afe243e..c8174cea 100644 --- a/src/x32/ptrace.rs +++ b/src/x32/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/system.rs b/src/x32/system.rs index 9d41eb77..2eeaadd6 100644 --- a/src/x32/system.rs +++ b/src/x32/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x32/xdp.rs b/src/x32/xdp.rs index 39cc09cf..17966644 100644 --- a/src/x32/xdp.rs +++ b/src/x32/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/bootparam.rs b/src/x86/bootparam.rs index fb0bb360..30775d20 100644 --- a/src/x86/bootparam.rs +++ b/src/x86/bootparam.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/btrfs.rs b/src/x86/btrfs.rs index c39eb671..4bd7dc09 100644 --- a/src/x86/btrfs.rs +++ b/src/x86/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -714,7 +714,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x86/elf_uapi.rs b/src/x86/elf_uapi.rs index ef16ad67..a926d64e 100644 --- a/src/x86/elf_uapi.rs +++ b/src/x86/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/errno.rs b/src/x86/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/x86/errno.rs +++ b/src/x86/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/x86/general.rs b/src/x86/general.rs index 6eb7bf5c..54c697e5 100644 --- a/src/x86/general.rs +++ b/src/x86/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3111,7 +3111,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3135,8 +3135,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3159,7 +3159,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3187,7 +3187,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/x86/if_arp.rs b/src/x86/if_arp.rs index ea854fb7..ab3489e6 100644 --- a/src/x86/if_arp.rs +++ b/src/x86/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/if_ether.rs b/src/x86/if_ether.rs index d337ab84..8fb6dcaa 100644 --- a/src/x86/if_ether.rs +++ b/src/x86/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/if_packet.rs b/src/x86/if_packet.rs index d6a85d8e..5c9eb4db 100644 --- a/src/x86/if_packet.rs +++ b/src/x86/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/image.rs b/src/x86/image.rs index 609ea889..bff15e37 100644 --- a/src/x86/image.rs +++ b/src/x86/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/x86/io_uring.rs b/src/x86/io_uring.rs index f23e463f..36140633 100644 --- a/src/x86/io_uring.rs +++ b/src/x86/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/ioctl.rs b/src/x86/ioctl.rs index 5887ebf7..35c4c22c 100644 --- a/src/x86/ioctl.rs +++ b/src/x86/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/x86/landlock.rs b/src/x86/landlock.rs index a048f110..2f9257dd 100644 --- a/src/x86/landlock.rs +++ b/src/x86/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/loop_device.rs b/src/x86/loop_device.rs index 4178e49e..a69c0087 100644 --- a/src/x86/loop_device.rs +++ b/src/x86/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_mode_t = crate::ctypes::c_ushort; pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; diff --git a/src/x86/mempolicy.rs b/src/x86/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/x86/mempolicy.rs +++ b/src/x86/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/x86/net.rs b/src/x86/net.rs index a7b4e603..aebb53c1 100644 --- a/src/x86/net.rs +++ b/src/x86/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2328,7 +2328,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2352,8 +2352,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2376,7 +2376,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2404,7 +2404,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/x86/netlink.rs b/src/x86/netlink.rs index 9754a63a..2426b94f 100644 --- a/src/x86/netlink.rs +++ b/src/x86/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3817,7 +3817,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5433,7 +5434,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/x86/prctl.rs b/src/x86/prctl.rs index ea5e551d..3858c5fb 100644 --- a/src/x86/prctl.rs +++ b/src/x86/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/ptrace.rs b/src/x86/ptrace.rs index 49e240ed..cabcf029 100644 --- a/src/x86/ptrace.rs +++ b/src/x86/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/system.rs b/src/x86/system.rs index e1f9f194..87e1c0a5 100644 --- a/src/x86/system.rs +++ b/src/x86/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86/xdp.rs b/src/x86/xdp.rs index 428f9cdc..06d3016b 100644 --- a/src/x86/xdp.rs +++ b/src/x86/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/bootparam.rs b/src/x86_64/bootparam.rs index 98b0d387..59527fba 100644 --- a/src/x86_64/bootparam.rs +++ b/src/x86_64/bootparam.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/btrfs.rs b/src/x86_64/btrfs.rs index b661d5f2..1caba3be 100644 --- a/src/x86_64/btrfs.rs +++ b/src/x86_64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -716,7 +716,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x86_64/elf_uapi.rs b/src/x86_64/elf_uapi.rs index 0a6eda48..d0b58c4c 100644 --- a/src/x86_64/elf_uapi.rs +++ b/src/x86_64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/errno.rs b/src/x86_64/errno.rs index 5b018a26..48eaf61f 100644 --- a/src/x86_64/errno.rs +++ b/src/x86_64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/x86_64/general.rs b/src/x86_64/general.rs index 6fefe51c..2490b17d 100644 --- a/src/x86_64/general.rs +++ b/src/x86_64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -3000,7 +3000,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -3024,8 +3024,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -3048,7 +3048,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -3076,7 +3076,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/x86_64/if_arp.rs b/src/x86_64/if_arp.rs index 9fd7a6ea..87a3565f 100644 --- a/src/x86_64/if_arp.rs +++ b/src/x86_64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/if_ether.rs b/src/x86_64/if_ether.rs index 22f63ce7..48b34ae7 100644 --- a/src/x86_64/if_ether.rs +++ b/src/x86_64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/if_packet.rs b/src/x86_64/if_packet.rs index 396193a8..d943d178 100644 --- a/src/x86_64/if_packet.rs +++ b/src/x86_64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/image.rs b/src/x86_64/image.rs index 609ea889..bff15e37 100644 --- a/src/x86_64/image.rs +++ b/src/x86_64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ diff --git a/src/x86_64/io_uring.rs b/src/x86_64/io_uring.rs index 51e15d3f..4daef43c 100644 --- a/src/x86_64/io_uring.rs +++ b/src/x86_64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/ioctl.rs b/src/x86_64/ioctl.rs index 63131c97..13aef4bb 100644 --- a/src/x86_64/ioctl.rs +++ b/src/x86_64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; diff --git a/src/x86_64/landlock.rs b/src/x86_64/landlock.rs index 82a16b73..506f9d2a 100644 --- a/src/x86_64/landlock.rs +++ b/src/x86_64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/loop_device.rs b/src/x86_64/loop_device.rs index 02fedb58..bb564539 100644 --- a/src/x86_64/loop_device.rs +++ b/src/x86_64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_old_uid_t = crate::ctypes::c_ushort; pub type __kernel_old_gid_t = crate::ctypes::c_ushort; diff --git a/src/x86_64/mempolicy.rs b/src/x86_64/mempolicy.rs index ad4957c5..51914ccd 100644 --- a/src/x86_64/mempolicy.rs +++ b/src/x86_64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; diff --git a/src/x86_64/net.rs b/src/x86_64/net.rs index 751a507e..5223de55 100644 --- a/src/x86_64/net.rs +++ b/src/x86_64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -2334,7 +2334,7 @@ Self::extract_bit(byte, index) pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; Self::extract_bit(byte, index) } #[inline] @@ -2358,8 +2358,8 @@ let byte = &mut self.storage.as_mut()[byte_index]; pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { debug_assert!(index / 8 < core::mem::size_of::()); let byte_index = index / 8; -let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); -*byte = Self::change_bit(*byte, index, val); +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { @@ -2382,7 +2382,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); let mut val = 0; for i in 0..(bit_width as usize) { -if Self::raw_get_bit(this, i + bit_offset) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } @@ -2410,7 +2410,7 @@ for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; } } } diff --git a/src/x86_64/netlink.rs b/src/x86_64/netlink.rs index f9b3fa31..71de8169 100644 --- a/src/x86_64/netlink.rs +++ b/src/x86_64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -3819,7 +3819,8 @@ NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, NL80211_MBSSID_CONFIG_ATTR_EMA = 5, -__NL80211_MBSSID_CONFIG_ATTR_LAST = 6, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, } #[repr(u32)] #[non_exhaustive] @@ -5435,7 +5436,7 @@ impl nl80211_sar_specs_attrs { pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; } impl nl80211_mbssid_config_attributes { -pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_EMA; +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; } impl nl80211_wiphy_radio_attrs { pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; diff --git a/src/x86_64/prctl.rs b/src/x86_64/prctl.rs index 3498ba56..c8ed8e18 100644 --- a/src/x86_64/prctl.rs +++ b/src/x86_64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/ptrace.rs b/src/x86_64/ptrace.rs index 29d860b4..ebe66614 100644 --- a/src/x86_64/ptrace.rs +++ b/src/x86_64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/system.rs b/src/x86_64/system.rs index 29fedf03..b7c09058 100644 --- a/src/x86_64/system.rs +++ b/src/x86_64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; diff --git a/src/x86_64/xdp.rs b/src/x86_64/xdp.rs index 511d3159..5d53d7b5 100644 --- a/src/x86_64/xdp.rs +++ b/src/x86_64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.71.1 */ +/* automatically generated by rust-bindgen 0.72.1 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar;