mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:24:39 +01:00
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>
This commit is contained in:
parent
e18190b7e9
commit
d02ac836e4
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue