X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fio-mapping.h;h=657fab4efab351070a9aaf7a625759159a786580;hb=2f7fa1be66dce77608330c5eb918d6360b5525f2;hp=c81ed2ac16bd572fd4598314daa0c9e1f8d17be1;hpb=d25223a0d22f7ec4203ec285dc6e51f696591ba3;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/io-mapping.h b/include/linux/io-mapping.h index c81ed2ac16bd..657fab4efab3 100644 --- a/include/linux/io-mapping.h +++ b/include/linux/io-mapping.h @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -117,6 +118,8 @@ io_mapping_unmap(void __iomem *vaddr) #else +#include + /* this struct isn't actually defined anywhere */ struct io_mapping; @@ -138,12 +141,14 @@ static inline void __iomem * io_mapping_map_atomic_wc(struct io_mapping *mapping, unsigned long offset) { + pagefault_disable(); return ((char __force __iomem *) mapping) + offset; } static inline void io_mapping_unmap_atomic(void __iomem *vaddr) { + pagefault_enable(); } /* Non-atomic map/unmap */