From 2c3d8e066ba93e61eaa8ac65fafab137f6c8af77 Mon Sep 17 00:00:00 2001
From: Alyssa Milburn <amilburn@zall.org>
Date: Fri, 3 Apr 2026 19:55:56 +0200
Subject: [PATCH] soc: apple: pmp: Force inlining of pmp_read32

---
 drivers/soc/apple/pmp.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/soc/apple/pmp.rs b/drivers/soc/apple/pmp.rs
index 6d8ca9e8141a..f2867cabe028 100644
--- a/drivers/soc/apple/pmp.rs
+++ b/drivers/soc/apple/pmp.rs
@@ -142,6 +142,8 @@ fn start(&self) -> Result<()> {
         rtk.as_mut().wake()?;
         rtk.start_endpoint(PMP_ENDPOINT)
     }
+    // Inline: alignment/bounds checks on 'off' are done at build-time.
+    #[inline(always)]
     fn pmp_read32(&self, off: usize) -> u32 {
         if let Some(pmp_mmio) = self.pmp_mmio.try_access() {
             pmp_mmio.read32_relaxed(off)
-- 
2.53.0

