Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+3 -3
+3 -3
include/linux/pgtable.h
··· 232 232 * and the mode cannot be used in interrupt context. 233 233 */ 234 234 #ifndef __HAVE_ARCH_ENTER_LAZY_MMU_MODE 235 - #define arch_enter_lazy_mmu_mode() do {} while (0) 236 - #define arch_leave_lazy_mmu_mode() do {} while (0) 237 - #define arch_flush_lazy_mmu_mode() do {} while (0) 235 + static inline void arch_enter_lazy_mmu_mode(void) {} 236 + static inline void arch_leave_lazy_mmu_mode(void) {} 237 + static inline void arch_flush_lazy_mmu_mode(void) {} 238 238 #endif 239 239 240 240 #ifndef pte_batch_hint