Skip to content

Commit

Permalink
temporary CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed May 25, 2024
1 parent e6d9a17 commit 96d4651
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
# Use cross for QEMU-based testing
# cross needs to execute Docker, GitHub Action already has it installed
cross:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [rustfmt, minver, macos, linux_native_builds, rust_stable]
strategy:
fail-fast: false
Expand Down
6 changes: 3 additions & 3 deletions src/sys/prctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ pub fn get_thp_disable() -> Result<bool> {
/// Set an identifier (or reset it) to the address memory range.
pub fn set_vma_anon_name(addr: NonNull<c_void>, length: NonZeroUsize, name: Option<&CStr>) -> Result<()> {
let nameref = match name {
Some(n) => n.as_ptr() as u64,
_ => 0u64
Some(n) => n.as_ptr() as usize,
_ => 0
};
let res = unsafe { libc::prctl(libc::PR_SET_VMA, libc::PR_SET_VMA_ANON_NAME, addr.as_ptr() as u64, length, nameref) };
let res = unsafe { libc::prctl(libc::PR_SET_VMA, libc::PR_SET_VMA_ANON_NAME, addr.as_ptr() as usize, length, nameref) };

Errno::result(res).map(drop)
}
4 changes: 2 additions & 2 deletions test/sys/test_prctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ mod test_prctl {
mman::mmap_anonymous(
None,
sz,
mman::ProtFlags::PROT_READ,
mman::MapFlags::MAP_SHARED,
mman::ProtFlags::PROT_READ | mman::ProtFlags::PROT_WRITE,
mman::MapFlags::MAP_PRIVATE,
)
.unwrap()
};
Expand Down

0 comments on commit 96d4651

Please sign in to comment.