[ARM] nommu: adjust headers for !MMU ARM systems
[firefly-linux-kernel-4.4.55.git] / include / asm-arm / proc-fns.h
index e9310895e79dae741c6104ba85f63a5afc660cb2..1bde92cdaebd01739c3db199a438f47a7ffd0493 100644 (file)
 
 #include <asm/memory.h>
 
+#ifdef CONFIG_MMU
+
 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
 
 #define cpu_get_pgd()  \
                (pgd_t *)phys_to_virt(pg);              \
        })
 
+#endif
+
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL__ */
 #endif /* __ASM_PROCFNS_H */