]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/io.h
x86/mm/mtrr: Avoid #ifdeffery with phys_wc_to_mtrr_index()
[mirror_ubuntu-artful-kernel.git] / include / linux / io.h
index 986f2bffea1edc95513361a76fa55df5a3e06c06..04cce4da368541ce9c9ca66bc7b921a9281c465f 100644 (file)
@@ -111,6 +111,13 @@ static inline void arch_phys_wc_del(int handle)
 }
 
 #define arch_phys_wc_add arch_phys_wc_add
+#ifndef arch_phys_wc_index
+static inline int arch_phys_wc_index(int handle)
+{
+       return -1;
+}
+#define arch_phys_wc_index arch_phys_wc_index
+#endif
 #endif
 
 #endif /* _LINUX_IO_H */