apply is_multiple_of lint

This commit is contained in:
auronandace
2026-02-21 08:39:26 +00:00
parent 02a68d3c87
commit df469ddcb3
10 changed files with 27 additions and 30 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ pub fn mprotect(address: usize, size: usize, flags: MapFlags) -> Result<()> {
const KERNEL_METADATA_BASE: usize = crate::USER_END_OFFSET - syscall::KERNEL_METADATA_SIZE;
const KERNEL_METADATA_PAGE_COUNT: usize = syscall::KERNEL_METADATA_SIZE / PAGE_SIZE + {
if syscall::KERNEL_METADATA_SIZE % PAGE_SIZE == 0 {
if syscall::KERNEL_METADATA_SIZE.is_multiple_of(PAGE_SIZE) {
0
} else {
1