summaryrefslogtreecommitdiff
path: root/include/linux/pgtable.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2025-09-14 03:03:39 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-09-22 00:22:35 +0300
commitd02ac836e4d6bdfd7d44927d01a4cd048ad4aba8 (patch)
tree0f15be58e2a45501de92589946a135e5a901aae3 /include/linux/pgtable.h
parente18190b7e97e9db6546390e6e0ceddae606892b2 (diff)
downloadlinux-d02ac836e4d6bdfd7d44927d01a4cd048ad4aba8.tar.xz
include/linux/pgtable.h: convert arch_enter_lazy_mmu_mode() and friends to static inlines
For all the usual reasons, plus a new one. Calling (void)arch_enter_lazy_mmu_mode(); deservedly blows up. Cc: Balbir Singh <balbirs@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/pgtable.h')
-rw-r--r--include/linux/pgtable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h
index 94249e671a7e..32e8457ad535 100644
--- a/include/linux/pgtable.h
+++ b/include/linux/pgtable.h
@@ -232,9 +232,9 @@ static inline int pmd_dirty(pmd_t pmd)
* and the mode cannot be used in interrupt context.
*/
#ifndef __HAVE_ARCH_ENTER_LAZY_MMU_MODE
-#define arch_enter_lazy_mmu_mode() do {} while (0)
-#define arch_leave_lazy_mmu_mode() do {} while (0)
-#define arch_flush_lazy_mmu_mode() do {} while (0)
+static inline void arch_enter_lazy_mmu_mode(void) {}
+static inline void arch_leave_lazy_mmu_mode(void) {}
+static inline void arch_flush_lazy_mmu_mode(void) {}
#endif
#ifndef pte_batch_hint