drm: linux/mm.h: Add offset_in_page()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 28 Feb 2015 07:50:44 +0000 (08:50 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 28 Feb 2015 08:08:30 +0000 (09:08 +0100)
Obtained-from: OpenBSD

sys/dev/drm/include/linux/mm.h

index 8e6a01a..a5fd739 100644 (file)
@@ -74,4 +74,6 @@ io_remap_pfn_range(struct vm_area_struct *vma,
        return (0);
 }
 
+#define offset_in_page(off)    ((off) & PAGE_MASK)
+
 #endif /* _LINUX_MM_H_ */