Skip to content

Commit

Permalink
Merge pull request #1364 from saschagrunert/any
Browse files Browse the repository at this point in the history
Remove unrequired cfg `any` directive
  • Loading branch information
openshift-merge-robot authored May 24, 2023
2 parents 0a4fd63 + 128eb32 commit fa90729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conmon-rs/server/src/oom_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ use tokio_eventfd::EventFd;
use tokio_util::sync::CancellationToken;
use tracing::{debug, debug_span, error, trace, Instrument};

#[cfg(any(all(target_os = "linux", target_env = "musl")))]
#[cfg(all(target_os = "linux", target_env = "musl"))]
pub const CGROUP2_SUPER_MAGIC: FsType = FsType(libc::CGROUP2_SUPER_MAGIC as u64);
#[cfg(any(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl"))))]
#[cfg(all(target_os = "linux", target_arch = "s390x", not(target_env = "musl")))]
pub const CGROUP2_SUPER_MAGIC: FsType = FsType(libc::CGROUP2_SUPER_MAGIC as u32);
#[cfg(any(
all(target_os = "linux", target_arch = "arm", not(target_env = "musl")),
all(target_os = "linux", target_arch = "x86")
))]
pub const CGROUP2_SUPER_MAGIC: FsType = FsType(libc::CGROUP2_SUPER_MAGIC as i32);
#[cfg(any(all(
#[cfg(all(
target_os = "linux",
not(target_arch = "s390x"),
not(target_arch = "arm"),
not(target_arch = "x86"),
not(target_env = "musl")
)))]
))]
pub const CGROUP2_SUPER_MAGIC: FsType = FsType(libc::CGROUP2_SUPER_MAGIC);

static CGROUP_ROOT: &str = "/sys/fs/cgroup";
Expand Down

0 comments on commit fa90729

Please sign in to comment.