diff --git a/rust/kernel/page.rs b/rust/kernel/page.rs index adecb200c654..764bb5acc90a 100644 --- a/rust/kernel/page.rs +++ b/rust/kernel/page.rs @@ -193,6 +193,7 @@ pub fn as_ptr(&self) -> *mut bindings::page { } /// Get the node id containing this page. + #[inline] pub fn nid(&self) -> i32 { // SAFETY: Always safe to call with a valid page. unsafe { bindings::page_to_nid(self.as_ptr()) }