Skip to content

Commit

Permalink
Remove cfg any
Browse files Browse the repository at this point in the history
  • Loading branch information
ETKNeil committed Feb 6, 2023
1 parent 137e462 commit b90376c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
18 changes: 9 additions & 9 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1757,24 +1757,24 @@ cfg_if! {
// where S stands for size (int, long, struct...)
// where T stands for type ('f','v','X'...)
// where N stands for NR (NumbeR)
if #[cfg(any(target_arch = "x86"))] {
if #[cfg(target_arch = "x86")] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40046602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC_SETVERSION: ::Ioctl = 0x40047602;
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0xc020660b;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40046602;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602;
} else if #[cfg(any(target_arch = "x86_64", target_arch = "riscv64", target_arch = "aarch64"))] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80086601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40086602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x80087601;
pub const FS_IOC_SETVERSION: ::Ioctl = 0x40087602;
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0xc020660b;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40046602;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602;
}
}

Expand Down
20 changes: 10 additions & 10 deletions src/unix/linux_like/linux/arch/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,24 +211,24 @@ cfg_if! {
// where S stands for size (int, long, struct...)
// where T stands for type ('f','v','X'...)
// where N stands for NR (NumbeR)
if #[cfg(any(target_arch = "x86"))] {
if #[cfg(target_arch = "x86")] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40046602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC_SETVERSION: ::Ioctl = 0x40047602;
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0xc020660b;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40046602;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047601;
} else if #[cfg(any(target_arch = "x86_64"))] {
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602;
} else if #[cfg(target_arch = "x86_64")] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80086601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40086602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x80087601;
pub const FS_IOC_SETVERSION: ::Ioctl = 0x40087602;
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0xc020660b;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40046602;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x80046601;
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/arch/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ cfg_if! {
// where S stands for size (int, long, struct...)
// where T stands for type ('f','v','X'...)
// where N stands for NR (NumbeR)
if #[cfg(any(target_arch = "mips"))] {
if #[cfg(target_arch = "mips")] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40046601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80046602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x40047601;
Expand All @@ -206,7 +206,7 @@ cfg_if! {
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
} else if #[cfg(any(target_arch = "mips64"))] {
} else if #[cfg(target_arch = "mips64")] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40086601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80086602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x40087601;
Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/arch/powerpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ cfg_if! {
// where S stands for size (int, long, struct...)
// where T stands for type ('f','v','X'...)
// where N stands for NR (NumbeR)
if #[cfg(any(target_arch = "powerpc"))] {
if #[cfg(target_arch = "powerpc")] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40086601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80086602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x40087601;
Expand All @@ -192,7 +192,7 @@ cfg_if! {
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
} else if #[cfg(any(target_arch = "powerpc64"))] {
} else if #[cfg(target_arch = "powerpc64")] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40086601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80086602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x40087601;
Expand Down

0 comments on commit b90376c

Please sign in to comment.